Skip to content

Commit c64feff

Browse files
committed
sort rules in rulesets
1 parent 446103a commit c64feff

File tree

3 files changed

+326
-326
lines changed

3 files changed

+326
-326
lines changed

packages/core/src/config/minimal.ts

Lines changed: 108 additions & 108 deletions
Original file line numberDiff line numberDiff line change
@@ -10,44 +10,44 @@ const minimal: RawGovernanceConfig<'built-in'> = {
1010
'info-contact': 'off',
1111
'info-license': 'off',
1212
'info-license-strict': 'off',
13-
'no-path-trailing-slash': 'warn',
14-
'no-identical-paths': 'warn',
1513
'no-ambiguous-paths': 'warn',
16-
'no-invalid-schema-examples': 'off',
17-
'no-invalid-parameter-examples': 'off',
18-
'no-http-verbs-in-paths': 'off',
14+
'no-duplicated-tag-names': 'off',
1915
'no-enum-type-mismatch': 'warn',
16+
'no-http-verbs-in-paths': 'off',
17+
'no-identical-paths': 'warn',
18+
'no-invalid-parameter-examples': 'off',
19+
'no-invalid-schema-examples': 'off',
20+
'no-path-trailing-slash': 'warn',
2021
'no-required-schema-properties-undefined': 'warn',
2122
'no-schema-type-mismatch': 'warn',
22-
'operation-summary': 'warn',
23+
'operation-2xx-response': 'warn',
24+
'operation-4xx-response': 'off',
25+
'operation-description': 'off',
2326
'operation-operationId': 'warn',
2427
'operation-operationId-unique': 'warn',
2528
'operation-operationId-url-safe': 'warn',
26-
'operation-description': 'off',
27-
'operation-2xx-response': 'warn',
28-
'operation-4xx-response': 'off',
2929
'operation-parameters-unique': 'warn',
30-
'operation-tag-defined': 'off',
3130
'operation-singular-tag': 'off',
31+
'operation-summary': 'warn',
32+
'operation-tag-defined': 'off',
3233
'parameter-description': 'off',
3334
'path-declaration-must-exist': 'warn',
34-
'path-not-include-query': 'warn',
35-
'path-parameters-defined': 'warn',
36-
'paths-kebab-case': 'off',
3735
'path-http-verbs-order': 'off',
36+
'path-not-include-query': 'warn',
3837
'path-params-defined': 'off',
38+
'path-parameters-defined': 'warn',
3939
'path-segment-plural': 'off',
40+
'paths-kebab-case': 'off',
41+
'request-mime-type': 'off',
4042
'required-string-property-missing-min-length': 'off',
4143
'response-contains-header': 'off',
42-
'request-mime-type': 'off',
4344
'response-contains-property': 'off',
4445
'response-mime-type': 'off',
46+
'scalar-property-missing-example': 'off',
4547
'security-defined': 'warn',
4648
'spec-strict-refs': 'off',
47-
'scalar-property-missing-example': 'off',
4849
'tag-description': 'warn',
4950
'tags-alphabetical': 'off',
50-
'no-duplicated-tag-names': 'off',
5151
},
5252
oas3_0Rules: {
5353
'array-parameter-serialization': 'off',
@@ -57,58 +57,58 @@ const minimal: RawGovernanceConfig<'built-in'> = {
5757
'info-license': 'off',
5858
'info-license-strict': 'off',
5959
'no-ambiguous-paths': 'warn',
60-
'no-path-trailing-slash': 'warn',
61-
'no-identical-paths': 'warn',
62-
'no-invalid-schema-examples': 'off',
63-
'no-invalid-parameter-examples': 'off',
64-
'no-http-verbs-in-paths': 'off',
60+
'no-duplicated-tag-names': 'off',
61+
'no-empty-servers': 'warn',
6562
'no-enum-type-mismatch': 'warn',
66-
'no-required-schema-properties-undefined': 'warn',
67-
'no-schema-type-mismatch': 'warn',
63+
'no-example-value-and-externalValue': 'warn',
64+
'no-http-verbs-in-paths': 'off',
65+
'no-identical-paths': 'warn',
6866
'no-invalid-media-type-examples': {
6967
severity: 'warn',
7068
allowAdditionalProperties: false,
7169
},
70+
'no-invalid-parameter-examples': 'off',
71+
'no-invalid-schema-examples': 'off',
72+
'no-path-trailing-slash': 'warn',
73+
'no-required-schema-properties-undefined': 'warn',
74+
'no-schema-type-mismatch': 'warn',
7275
'no-server-example.com': 'warn',
7376
'no-server-trailing-slash': 'error',
74-
'no-empty-servers': 'warn',
75-
'no-example-value-and-externalValue': 'warn',
76-
'no-unused-components': 'warn',
77-
'no-undefined-server-variable': 'warn',
7877
'no-server-variables-empty-enum': 'error',
78+
'no-undefined-server-variable': 'warn',
79+
'no-unused-components': 'warn',
7980
'nullable-type-sibling': 'warn',
80-
'operation-summary': 'warn',
81+
'operation-2xx-response': 'warn',
82+
'operation-4xx-problem-details-rfc7807': 'off',
83+
'operation-4xx-response': 'off',
84+
'operation-description': 'off',
8185
'operation-operationId': 'warn',
8286
'operation-operationId-unique': 'warn',
8387
'operation-operationId-url-safe': 'warn',
84-
'operation-description': 'off',
85-
'operation-2xx-response': 'warn',
86-
'operation-4xx-response': 'off',
87-
'operation-4xx-problem-details-rfc7807': 'off',
8888
'operation-parameters-unique': 'warn',
89-
'operation-tag-defined': 'off',
9089
'operation-singular-tag': 'off',
90+
'operation-summary': 'warn',
91+
'operation-tag-defined': 'off',
9192
'parameter-description': 'off',
9293
'path-declaration-must-exist': 'warn',
93-
'path-not-include-query': 'warn',
94-
'path-parameters-defined': 'warn',
95-
'paths-kebab-case': 'off',
9694
'path-http-verbs-order': 'off',
95+
'path-not-include-query': 'warn',
9796
'path-params-defined': 'off',
97+
'path-parameters-defined': 'warn',
9898
'path-segment-plural': 'off',
99+
'paths-kebab-case': 'off',
100+
'request-mime-type': 'off',
99101
'required-string-property-missing-min-length': 'off',
100102
'response-contains-header': 'off',
101-
'request-mime-type': 'off',
102103
'response-contains-property': 'off',
103104
'response-mime-type': 'off',
104-
'security-defined': 'warn',
105-
'spec-strict-refs': 'off',
106105
'scalar-property-missing-example': 'off',
106+
'security-defined': 'warn',
107107
'spec-components-invalid-map-name': 'warn',
108+
'spec-example-values': 'off',
109+
'spec-strict-refs': 'off',
108110
'tag-description': 'warn',
109111
'tags-alphabetical': 'off',
110-
'no-duplicated-tag-names': 'off',
111-
'spec-example-values': 'off',
112112
},
113113
oas3_1Rules: {
114114
'array-parameter-serialization': 'off',
@@ -117,55 +117,55 @@ const minimal: RawGovernanceConfig<'built-in'> = {
117117
'info-contact': 'off',
118118
'info-license': 'off',
119119
'info-license-strict': 'off',
120-
'no-path-trailing-slash': 'warn',
121-
'no-identical-paths': 'warn',
122120
'no-ambiguous-paths': 'warn',
123-
'no-invalid-schema-examples': 'off',
124-
'no-invalid-parameter-examples': 'off',
125-
'no-http-verbs-in-paths': 'off',
121+
'no-duplicated-tag-names': 'off',
122+
'no-empty-servers': 'warn',
126123
'no-enum-type-mismatch': 'warn',
124+
'no-example-value-and-externalValue': 'warn',
125+
'no-http-verbs-in-paths': 'off',
126+
'no-identical-paths': 'warn',
127+
'no-invalid-media-type-examples': 'warn',
128+
'no-invalid-parameter-examples': 'off',
129+
'no-invalid-schema-examples': 'off',
130+
'no-path-trailing-slash': 'warn',
127131
'no-required-schema-properties-undefined': 'warn',
128132
'no-schema-type-mismatch': 'warn',
129-
'no-invalid-media-type-examples': 'warn',
130133
'no-server-example.com': 'warn',
131134
'no-server-trailing-slash': 'error',
132-
'no-empty-servers': 'warn',
133-
'no-example-value-and-externalValue': 'warn',
134-
'no-unused-components': 'warn',
135-
'no-undefined-server-variable': 'warn',
136135
'no-server-variables-empty-enum': 'error',
137-
'operation-summary': 'warn',
136+
'no-undefined-server-variable': 'warn',
137+
'no-unused-components': 'warn',
138+
'operation-2xx-response': 'warn',
139+
'operation-4xx-problem-details-rfc7807': 'off',
140+
'operation-4xx-response': 'off',
141+
'operation-description': 'off',
138142
'operation-operationId': 'warn',
139143
'operation-operationId-unique': 'warn',
140144
'operation-operationId-url-safe': 'warn',
141-
'operation-description': 'off',
142-
'operation-2xx-response': 'warn',
143-
'operation-4xx-response': 'off',
144-
'operation-4xx-problem-details-rfc7807': 'off',
145145
'operation-parameters-unique': 'warn',
146-
'operation-tag-defined': 'off',
147146
'operation-singular-tag': 'off',
147+
'operation-summary': 'warn',
148+
'operation-tag-defined': 'off',
148149
'parameter-description': 'off',
149150
'path-declaration-must-exist': 'warn',
150-
'path-not-include-query': 'warn',
151-
'path-parameters-defined': 'warn',
152-
'paths-kebab-case': 'off',
153151
'path-http-verbs-order': 'off',
152+
'path-not-include-query': 'warn',
154153
'path-params-defined': 'off',
154+
'path-parameters-defined': 'warn',
155155
'path-segment-plural': 'off',
156+
'paths-kebab-case': 'off',
157+
'request-mime-type': 'off',
156158
'required-string-property-missing-min-length': 'off',
157159
'response-contains-header': 'off',
158-
'request-mime-type': 'off',
159160
'response-contains-property': 'off',
160161
'response-mime-type': 'off',
161-
'security-defined': 'warn',
162-
'spec-strict-refs': 'off',
163162
'scalar-property-missing-example': 'off',
163+
'security-defined': 'warn',
164164
'spec-components-invalid-map-name': 'warn',
165+
'spec-example-values': 'off',
166+
'spec-strict-refs': 'off',
165167
'tag-description': 'warn',
166168
'tags-alphabetical': 'off',
167-
'no-duplicated-tag-names': 'off',
168-
'spec-example-values': 'off',
169169
},
170170
oas3_2Rules: {
171171
'array-parameter-serialization': 'off',
@@ -174,104 +174,104 @@ const minimal: RawGovernanceConfig<'built-in'> = {
174174
'info-contact': 'off',
175175
'info-license': 'off',
176176
'info-license-strict': 'off',
177-
'no-path-trailing-slash': 'warn',
178-
'no-identical-paths': 'warn',
179177
'no-ambiguous-paths': 'warn',
180-
'no-invalid-schema-examples': 'off',
181-
'no-invalid-parameter-examples': 'off',
182-
'no-http-verbs-in-paths': 'off',
178+
'no-duplicated-tag-names': 'off',
179+
'no-empty-servers': 'warn',
183180
'no-enum-type-mismatch': 'warn',
181+
'no-http-verbs-in-paths': 'off',
182+
'no-identical-paths': 'warn',
183+
'no-invalid-media-type-examples': 'warn',
184+
'no-invalid-parameter-examples': 'off',
185+
'no-invalid-schema-examples': 'off',
186+
'no-path-trailing-slash': 'warn',
184187
'no-required-schema-properties-undefined': 'warn',
185188
'no-schema-type-mismatch': 'warn',
186-
'no-invalid-media-type-examples': 'warn',
187189
'no-server-example.com': 'warn',
188190
'no-server-trailing-slash': 'error',
189-
'no-empty-servers': 'warn',
190-
'no-unused-components': 'warn',
191-
'no-undefined-server-variable': 'warn',
192191
'no-server-variables-empty-enum': 'error',
193-
'operation-summary': 'warn',
192+
'no-undefined-server-variable': 'warn',
193+
'no-unused-components': 'warn',
194+
'operation-2xx-response': 'warn',
195+
'operation-4xx-problem-details-rfc7807': 'off',
196+
'operation-4xx-response': 'off',
197+
'operation-description': 'off',
194198
'operation-operationId': 'warn',
195199
'operation-operationId-unique': 'warn',
196200
'operation-operationId-url-safe': 'warn',
197-
'operation-description': 'off',
198-
'operation-2xx-response': 'warn',
199-
'operation-4xx-response': 'off',
200-
'operation-4xx-problem-details-rfc7807': 'off',
201201
'operation-parameters-unique': 'warn',
202-
'operation-tag-defined': 'off',
203202
'operation-singular-tag': 'off',
203+
'operation-summary': 'warn',
204+
'operation-tag-defined': 'off',
204205
'parameter-description': 'off',
205206
'path-declaration-must-exist': 'warn',
206-
'path-not-include-query': 'warn',
207-
'path-parameters-defined': 'warn',
208-
'paths-kebab-case': 'off',
209207
'path-http-verbs-order': 'off',
208+
'path-not-include-query': 'warn',
210209
'path-params-defined': 'off',
210+
'path-parameters-defined': 'warn',
211211
'path-segment-plural': 'off',
212+
'paths-kebab-case': 'off',
213+
'request-mime-type': 'off',
212214
'required-string-property-missing-min-length': 'off',
213215
'response-contains-header': 'off',
214-
'request-mime-type': 'off',
215216
'response-contains-property': 'off',
216217
'response-mime-type': 'off',
217-
'security-defined': 'warn',
218-
'spec-strict-refs': 'off',
219218
'scalar-property-missing-example': 'off',
219+
'security-defined': 'warn',
220220
'spec-components-invalid-map-name': 'warn',
221-
'tag-description': 'warn',
222-
'tags-alphabetical': 'off',
223-
'no-duplicated-tag-names': 'off',
224-
'spec-no-invalid-tag-parents': 'warn',
225-
'spec-no-invalid-encoding-combinations': 'warn',
226221
'spec-discriminator-defaultMapping': 'off',
227222
'spec-example-values': 'off',
223+
'spec-no-invalid-encoding-combinations': 'warn',
224+
'spec-no-invalid-tag-parents': 'warn',
225+
'spec-strict-refs': 'off',
226+
'tag-description': 'warn',
227+
'tags-alphabetical': 'off',
228228
},
229229
async2Rules: {
230230
'channels-kebab-case': 'off',
231231
'info-contact': 'off',
232232
'info-license-strict': 'off',
233233
'no-channel-trailing-slash': 'off',
234-
'operation-operationId': 'warn',
235-
'tag-description': 'warn',
236-
'tags-alphabetical': 'off',
237234
'no-duplicated-tag-names': 'off',
238-
'no-required-schema-properties-undefined': 'warn',
239235
'no-enum-type-mismatch': 'warn',
236+
'no-required-schema-properties-undefined': 'warn',
240237
'no-schema-type-mismatch': 'warn',
238+
'operation-operationId': 'warn',
239+
'tag-description': 'warn',
240+
'tags-alphabetical': 'off',
241241
},
242242
async3Rules: {
243243
'channels-kebab-case': 'off',
244244
'info-contact': 'off',
245245
'info-license-strict': 'off',
246246
'no-channel-trailing-slash': 'off',
247-
'operation-operationId': 'warn',
248-
'tag-description': 'warn',
249-
'tags-alphabetical': 'off',
250247
'no-duplicated-tag-names': 'off',
251-
'no-required-schema-properties-undefined': 'warn',
252248
'no-enum-type-mismatch': 'warn',
249+
'no-required-schema-properties-undefined': 'warn',
253250
'no-schema-type-mismatch': 'warn',
251+
'operation-operationId': 'warn',
252+
'tag-description': 'warn',
253+
'tags-alphabetical': 'off',
254254
},
255255
arazzo1Rules: {
256256
'criteria-unique': 'off',
257257
'no-criteria-xpath': 'off',
258+
'no-enum-type-mismatch': 'warn',
259+
'no-required-schema-properties-undefined': 'warn',
260+
'no-schema-type-mismatch': 'warn',
261+
'no-x-security-scheme-name-in-workflow': 'off',
262+
'no-x-security-scheme-name-without-openapi': 'off',
258263
'parameters-unique': 'off',
259264
'requestBody-replacements-unique': 'off',
265+
'respect-supported-versions': 'off',
266+
'sourceDescription-name-unique': 'off',
260267
'sourceDescription-type': 'off',
261268
'sourceDescriptions-not-empty': 'off',
262-
'step-onSuccess-unique': 'off',
263269
'step-onFailure-unique': 'off',
270+
'step-onSuccess-unique': 'off',
264271
'stepId-unique': 'error',
265-
'sourceDescription-name-unique': 'off',
266-
'respect-supported-versions': 'off',
267-
'workflowId-unique': 'error',
268272
'workflow-dependsOn': 'off',
269-
'no-x-security-scheme-name-without-openapi': 'off',
273+
'workflowId-unique': 'error',
270274
'x-security-scheme-required-values': 'off',
271-
'no-x-security-scheme-name-in-workflow': 'off',
272-
'no-required-schema-properties-undefined': 'warn',
273-
'no-enum-type-mismatch': 'warn',
274-
'no-schema-type-mismatch': 'warn',
275275
},
276276
overlay1Rules: {
277277
'info-contact': 'off',

0 commit comments

Comments
 (0)