File tree 1 file changed +100
-5
lines changed
Filter options
1 file changed +100
-5
lines changed
Original file line number Diff line number Diff line change 45
45
"type" : " string" ,
46
46
"enum" : [
47
47
" required" ,
48
- " rule" ,
49
48
" advisory"
50
49
]
51
50
}
67
66
"type" : " string"
68
67
}
69
68
},
69
+ "additionalProperties" : false ,
70
70
"required" : [
71
71
" properties" ,
72
72
" queries" ,
85
85
"type" : " object" ,
86
86
"patternProperties" : {
87
87
"^\\ w+\\ d+-CPP" : {
88
+ "description" : " A coding standard rule" ,
89
+ "type" : " object" ,
90
+ "properties" : {
91
+ "properties" : {
92
+ "type" : " object" ,
93
+ "properties" : {
94
+ "obligation" : {
95
+ "type" : " string" ,
96
+ "enum" : [
97
+ " rule"
98
+ ]
99
+ }
100
+ },
101
+ "required" : [
102
+ " obligation"
103
+ ]
104
+ },
105
+ "queries" : {
106
+ "type" : " array" ,
107
+ "uniqueItems" : true ,
108
+ "items" : {
109
+ "$ref" : " #/$defs/query"
110
+ }
111
+ },
112
+ "title" : {
113
+ "type" : " string"
114
+ }
115
+ },
116
+ "required" : [
117
+ " properties" ,
118
+ " queries" ,
119
+ " title"
120
+ ],
121
+ "additionalProperties" : false
122
+ }
123
+ },
124
+ "minProperties" : 1
125
+ }
126
+ }
127
+ },
128
+ {
129
+ "properties" : {
130
+ "CERT-C" : {
131
+ "description" : " Rules part of the CERT-C standard" ,
132
+ "type" : " object" ,
133
+ "patternProperties" : {
134
+ "^\\ w+\\ d+-C" : {
135
+ "description" : " A coding standard rule" ,
136
+ "type" : " object" ,
137
+ "properties" : {
138
+ "properties" : {
139
+ "type" : " object" ,
140
+ "properties" : {
141
+ "obligation" : {
142
+ "type" : " string" ,
143
+ "enum" : [
144
+ " rule"
145
+ ]
146
+ }
147
+ },
148
+ "required" : [
149
+ " obligation"
150
+ ]
151
+ },
152
+ "queries" : {
153
+ "type" : " array" ,
154
+ "uniqueItems" : true ,
155
+ "items" : {
156
+ "$ref" : " #/$defs/query"
157
+ }
158
+ },
159
+ "title" : {
160
+ "type" : " string"
161
+ }
162
+ },
163
+ "required" : [
164
+ " properties" ,
165
+ " queries" ,
166
+ " title"
167
+ ],
168
+ "additionalProperties" : false
169
+ }
170
+ },
171
+ "minProperties" : 1
172
+ }
173
+ }
174
+ },
175
+ {
176
+ "properties" : {
177
+ "MISRA-C-2012" : {
178
+ "description" : " Rules part of the MISRA C 2012 standard" ,
179
+ "type" : " object" ,
180
+ "patternProperties" : {
181
+ "^RULE-\\ d+-\\ d+" : {
88
182
"description" : " A coding standard rule" ,
89
183
"type" : " object" ,
90
184
"properties" : {
95
189
"type" : " string" ,
96
190
"enum" : [
97
191
" required" ,
98
- " rule " ,
99
- " advisory "
192
+ " advisory " ,
193
+ " mandatory "
100
194
]
101
195
}
102
196
},
119
213
" properties" ,
120
214
" queries" ,
121
215
" title"
122
- ]
216
+ ],
217
+ "additionalProperties" : false
123
218
}
124
219
},
125
220
"minProperties" : 1
128
223
}
129
224
],
130
225
"minProperties" : 1 ,
131
- "maxProperties" : 2 ,
226
+ "maxProperties" : 4 ,
132
227
"$defs" : {
133
228
"query" : {
134
229
"$id" : " /schemas/query" ,
You can’t perform that action at this time.
0 commit comments