@sun-asterisk/sunlint 1.2.2 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +40 -1
- package/CONTRIBUTING.md +533 -70
- package/README.md +16 -2
- package/config/engines/engines-enhanced.json +86 -0
- package/config/engines/semantic-config.json +114 -0
- package/config/eslint-rule-mapping.json +50 -38
- package/config/rules/enhanced-rules-registry.json +2503 -0
- package/config/rules/rules-registry-generated.json +785 -837
- package/core/adapters/sunlint-rule-adapter.js +25 -30
- package/core/analysis-orchestrator.js +42 -2
- package/core/categories.js +52 -0
- package/core/category-constants.js +39 -0
- package/core/cli-action-handler.js +32 -5
- package/core/config-manager.js +111 -0
- package/core/config-merger.js +61 -0
- package/core/constants/categories.js +168 -0
- package/core/constants/defaults.js +165 -0
- package/core/constants/engines.js +185 -0
- package/core/constants/index.js +30 -0
- package/core/constants/rules.js +215 -0
- package/core/file-targeting-service.js +128 -7
- package/core/interfaces/rule-plugin.interface.js +207 -0
- package/core/plugin-manager.js +448 -0
- package/core/rule-selection-service.js +42 -15
- package/core/semantic-engine.js +560 -0
- package/core/semantic-rule-base.js +433 -0
- package/core/unified-rule-registry.js +484 -0
- package/docs/CONSTANTS-ARCHITECTURE.md +288 -0
- package/engines/core/base-engine.js +249 -0
- package/engines/engine-factory.js +275 -0
- package/engines/eslint-engine.js +171 -19
- package/engines/heuristic-engine.js +511 -78
- package/integrations/eslint/plugin/index.js +27 -27
- package/package.json +10 -6
- package/rules/common/C003_no_vague_abbreviations/analyzer.js +1 -1
- package/rules/common/C029_catch_block_logging/analyzer.js +17 -5
- package/rules/common/C047_no_duplicate_retry_logic/c047-semantic-rule.js +278 -0
- package/rules/common/C047_no_duplicate_retry_logic/symbol-analyzer-enhanced.js +968 -0
- package/rules/common/C047_no_duplicate_retry_logic/symbol-config.json +71 -0
- package/rules/index.js +7 -0
- package/scripts/category-manager.js +150 -0
- package/scripts/generate-rules-registry.js +88 -0
- package/scripts/migrate-rule-registry.js +157 -0
- package/scripts/validate-system.js +48 -0
- package/.sunlint.json +0 -35
- package/config/README.md +0 -88
- package/config/engines/eslint-rule-mapping.json +0 -74
- package/config/schemas/sunlint-schema.json +0 -0
- package/config/testing/test-s005-working.ts +0 -22
- package/core/multi-rule-runner.js +0 -0
- package/engines/tree-sitter-parser.js +0 -0
- package/engines/universal-ast-engine.js +0 -0
- package/rules/common/C029_catch_block_logging/analyzer-backup.js +0 -426
- package/rules/common/C029_catch_block_logging/analyzer-fixed.js +0 -130
- package/rules/common/C029_catch_block_logging/analyzer-multi-tech.js +0 -487
- package/rules/common/C029_catch_block_logging/analyzer-simple.js +0 -110
- package/rules/common/C029_catch_block_logging/ast-analyzer-backup.js +0 -441
- package/rules/common/C029_catch_block_logging/ast-analyzer-new.js +0 -127
- package/rules/common/C029_catch_block_logging/ast-analyzer.js +0 -133
- package/rules/common/C029_catch_block_logging/cfg-analyzer.js +0 -408
- package/rules/common/C029_catch_block_logging/dataflow-analyzer.js +0 -454
- package/rules/common/C029_catch_block_logging/multi-language-ast-engine.js +0 -700
- package/rules/common/C029_catch_block_logging/pattern-learning-analyzer.js +0 -568
- package/rules/common/C029_catch_block_logging/semantic-analyzer.js +0 -459
|
@@ -0,0 +1,2503 @@
|
|
|
1
|
+
{
|
|
2
|
+
"rules": {
|
|
3
|
+
"C005": {
|
|
4
|
+
"name": "Single Responsibility Principle",
|
|
5
|
+
"description": "Each function should do one thing only",
|
|
6
|
+
"category": "design",
|
|
7
|
+
"severity": "warning",
|
|
8
|
+
"languages": [
|
|
9
|
+
"typescript",
|
|
10
|
+
"javascript",
|
|
11
|
+
"dart",
|
|
12
|
+
"kotlin"
|
|
13
|
+
],
|
|
14
|
+
"analyzer": "./rules/common/C005_single_responsibility/analyzer.js",
|
|
15
|
+
"config": "./rules/common/C005_single_responsibility/config.json",
|
|
16
|
+
"version": "1.0.0",
|
|
17
|
+
"status": "stable",
|
|
18
|
+
"tags": [
|
|
19
|
+
"design",
|
|
20
|
+
"responsibility",
|
|
21
|
+
"maintainability"
|
|
22
|
+
],
|
|
23
|
+
"engineMappings": {
|
|
24
|
+
"eslint": [
|
|
25
|
+
"max-statements-per-line",
|
|
26
|
+
"complexity"
|
|
27
|
+
]
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"C019": {
|
|
31
|
+
"name": "Log Level Usage",
|
|
32
|
+
"description": "Không sử dụng log mức error cho lỗi không nghiêm trọng",
|
|
33
|
+
"category": "logging",
|
|
34
|
+
"severity": "warning",
|
|
35
|
+
"languages": [
|
|
36
|
+
"typescript",
|
|
37
|
+
"dart",
|
|
38
|
+
"kotlin",
|
|
39
|
+
"javascript"
|
|
40
|
+
],
|
|
41
|
+
"analyzer": "./rules/C019_log_level_usage/analyzer.js",
|
|
42
|
+
"config": "./rules/C019_log_level_usage/config.json",
|
|
43
|
+
"version": "1.0.0",
|
|
44
|
+
"status": "stable",
|
|
45
|
+
"tags": [
|
|
46
|
+
"logging",
|
|
47
|
+
"error-handling",
|
|
48
|
+
"severity"
|
|
49
|
+
],
|
|
50
|
+
"engineMappings": {
|
|
51
|
+
"eslint": [
|
|
52
|
+
"no-console",
|
|
53
|
+
"no-alert",
|
|
54
|
+
"no-debugger"
|
|
55
|
+
]
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
"C006": {
|
|
59
|
+
"name": "Function Naming Convention",
|
|
60
|
+
"description": "Tên hàm phải là động từ/verb-noun pattern",
|
|
61
|
+
"category": "naming",
|
|
62
|
+
"severity": "warning",
|
|
63
|
+
"languages": [
|
|
64
|
+
"typescript",
|
|
65
|
+
"dart",
|
|
66
|
+
"kotlin",
|
|
67
|
+
"javascript"
|
|
68
|
+
],
|
|
69
|
+
"analyzer": "./rules/C006_function_naming/analyzer.js",
|
|
70
|
+
"config": "./rules/C006_function_naming/config.json",
|
|
71
|
+
"version": "1.0.0",
|
|
72
|
+
"status": "activated",
|
|
73
|
+
"tags": [
|
|
74
|
+
"naming",
|
|
75
|
+
"convention",
|
|
76
|
+
"readability"
|
|
77
|
+
],
|
|
78
|
+
"engineMappings": {
|
|
79
|
+
"eslint": [
|
|
80
|
+
"func-names",
|
|
81
|
+
"func-name-matching",
|
|
82
|
+
"@typescript-eslint/naming-convention"
|
|
83
|
+
]
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
"C007": {
|
|
87
|
+
"name": "Meaningful Comments",
|
|
88
|
+
"description": "Avoid comments that just describe the code",
|
|
89
|
+
"category": "documentation",
|
|
90
|
+
"severity": "info",
|
|
91
|
+
"languages": [
|
|
92
|
+
"typescript",
|
|
93
|
+
"javascript",
|
|
94
|
+
"dart",
|
|
95
|
+
"kotlin"
|
|
96
|
+
],
|
|
97
|
+
"analyzer": "./rules/common/C007_meaningful_comments/analyzer.js",
|
|
98
|
+
"config": "./rules/common/C007_meaningful_comments/config.json",
|
|
99
|
+
"version": "1.0.0",
|
|
100
|
+
"status": "stable",
|
|
101
|
+
"tags": [
|
|
102
|
+
"documentation",
|
|
103
|
+
"comments",
|
|
104
|
+
"maintainability"
|
|
105
|
+
],
|
|
106
|
+
"engineMappings": {
|
|
107
|
+
"eslint": [
|
|
108
|
+
"spaced-comment",
|
|
109
|
+
"no-inline-comments",
|
|
110
|
+
"no-warning-comments"
|
|
111
|
+
]
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
"C010": {
|
|
115
|
+
"name": "Limit Block Nesting",
|
|
116
|
+
"description": "Limit nested blocks (if/for/while/switch) to maximum 3 levels for readability",
|
|
117
|
+
"category": "complexity",
|
|
118
|
+
"severity": "warning",
|
|
119
|
+
"languages": [
|
|
120
|
+
"typescript",
|
|
121
|
+
"javascript",
|
|
122
|
+
"dart",
|
|
123
|
+
"kotlin"
|
|
124
|
+
],
|
|
125
|
+
"analyzer": "./rules/common/C010_limit_block_nesting/analyzer.js",
|
|
126
|
+
"version": "1.0.0",
|
|
127
|
+
"status": "stable",
|
|
128
|
+
"tags": [
|
|
129
|
+
"complexity",
|
|
130
|
+
"readability",
|
|
131
|
+
"nesting",
|
|
132
|
+
"maintainability"
|
|
133
|
+
],
|
|
134
|
+
"strategy": {
|
|
135
|
+
"preferred": "ast",
|
|
136
|
+
"fallbacks": [
|
|
137
|
+
"ast",
|
|
138
|
+
"regex"
|
|
139
|
+
],
|
|
140
|
+
"accuracy": {
|
|
141
|
+
"ast": 95,
|
|
142
|
+
"regex": 75
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
},
|
|
146
|
+
"C012": {
|
|
147
|
+
"name": "Command Query Separation",
|
|
148
|
+
"description": "Separate Command and Query operations (CQS principle)",
|
|
149
|
+
"category": "design",
|
|
150
|
+
"severity": "warning",
|
|
151
|
+
"languages": [
|
|
152
|
+
"typescript",
|
|
153
|
+
"javascript",
|
|
154
|
+
"dart",
|
|
155
|
+
"kotlin"
|
|
156
|
+
],
|
|
157
|
+
"analyzer": "./rules/common/C012_command_query_separation/analyzer.js",
|
|
158
|
+
"config": "./rules/common/C012_command_query_separation/config.json",
|
|
159
|
+
"version": "1.0.0",
|
|
160
|
+
"status": "stable",
|
|
161
|
+
"tags": [
|
|
162
|
+
"design",
|
|
163
|
+
"separation",
|
|
164
|
+
"maintainability"
|
|
165
|
+
],
|
|
166
|
+
"engineMappings": {
|
|
167
|
+
"eslint": [
|
|
168
|
+
"consistent-return",
|
|
169
|
+
"no-void",
|
|
170
|
+
"@typescript-eslint/no-confusing-void-expression"
|
|
171
|
+
]
|
|
172
|
+
}
|
|
173
|
+
},
|
|
174
|
+
"C015": {
|
|
175
|
+
"name": "Domain Language",
|
|
176
|
+
"description": "Use domain language in class/function names",
|
|
177
|
+
"category": "naming",
|
|
178
|
+
"severity": "warning",
|
|
179
|
+
"languages": [
|
|
180
|
+
"typescript",
|
|
181
|
+
"javascript",
|
|
182
|
+
"dart",
|
|
183
|
+
"kotlin"
|
|
184
|
+
],
|
|
185
|
+
"analyzer": "./rules/common/C015_domain_language/analyzer.js",
|
|
186
|
+
"config": "./rules/common/C015_domain_language/config.json",
|
|
187
|
+
"version": "1.0.0",
|
|
188
|
+
"status": "stable",
|
|
189
|
+
"tags": [
|
|
190
|
+
"naming",
|
|
191
|
+
"domain",
|
|
192
|
+
"readability"
|
|
193
|
+
],
|
|
194
|
+
"engineMappings": {
|
|
195
|
+
"eslint": [
|
|
196
|
+
"@typescript-eslint/naming-convention",
|
|
197
|
+
"camelcase"
|
|
198
|
+
]
|
|
199
|
+
}
|
|
200
|
+
},
|
|
201
|
+
"C029": {
|
|
202
|
+
"name": "Catch Block Error Logging",
|
|
203
|
+
"description": "Mọi catch block phải log nguyên nhân lỗi đầy đủ",
|
|
204
|
+
"category": "error-handling",
|
|
205
|
+
"severity": "error",
|
|
206
|
+
"languages": [
|
|
207
|
+
"typescript",
|
|
208
|
+
"dart",
|
|
209
|
+
"kotlin",
|
|
210
|
+
"javascript"
|
|
211
|
+
],
|
|
212
|
+
"analyzer": "./rules/C029_catch_block_logging/analyzer.js",
|
|
213
|
+
"config": "./rules/C029_catch_block_logging/config.json",
|
|
214
|
+
"version": "1.0.0",
|
|
215
|
+
"status": "activated",
|
|
216
|
+
"tags": [
|
|
217
|
+
"error-handling",
|
|
218
|
+
"logging",
|
|
219
|
+
"debugging",
|
|
220
|
+
"monitoring"
|
|
221
|
+
]
|
|
222
|
+
},
|
|
223
|
+
"C031": {
|
|
224
|
+
"name": "Validation Logic Separation",
|
|
225
|
+
"description": "Logic kiểm tra dữ liệu (validate) phải nằm riêng biệt",
|
|
226
|
+
"category": "validation",
|
|
227
|
+
"severity": "error",
|
|
228
|
+
"languages": [
|
|
229
|
+
"typescript",
|
|
230
|
+
"dart",
|
|
231
|
+
"kotlin",
|
|
232
|
+
"javascript"
|
|
233
|
+
],
|
|
234
|
+
"analyzer": "./rules/C031_validation_separation/analyzer.js",
|
|
235
|
+
"config": "./rules/C031_validation_separation/config.json",
|
|
236
|
+
"version": "1.0.0",
|
|
237
|
+
"status": "experimental",
|
|
238
|
+
"tags": [
|
|
239
|
+
"validation",
|
|
240
|
+
"separation",
|
|
241
|
+
"architecture"
|
|
242
|
+
],
|
|
243
|
+
"engineMappings": {
|
|
244
|
+
"eslint": [
|
|
245
|
+
"no-implicit-coercion",
|
|
246
|
+
"eqeqeq",
|
|
247
|
+
"@typescript-eslint/strict-boolean-expressions"
|
|
248
|
+
]
|
|
249
|
+
}
|
|
250
|
+
},
|
|
251
|
+
"C032": {
|
|
252
|
+
"name": "No External APIs in Constructors",
|
|
253
|
+
"description": "Don't call external APIs in constructors or static blocks",
|
|
254
|
+
"category": "design",
|
|
255
|
+
"severity": "error",
|
|
256
|
+
"languages": [
|
|
257
|
+
"typescript",
|
|
258
|
+
"javascript",
|
|
259
|
+
"dart",
|
|
260
|
+
"kotlin"
|
|
261
|
+
],
|
|
262
|
+
"analyzer": "./rules/common/C032_no_constructor_api/analyzer.js",
|
|
263
|
+
"config": "./rules/common/C032_no_constructor_api/config.json",
|
|
264
|
+
"version": "1.0.0",
|
|
265
|
+
"status": "stable",
|
|
266
|
+
"tags": [
|
|
267
|
+
"design",
|
|
268
|
+
"constructor",
|
|
269
|
+
"initialization"
|
|
270
|
+
],
|
|
271
|
+
"engineMappings": {
|
|
272
|
+
"eslint": [
|
|
273
|
+
"no-new",
|
|
274
|
+
"@typescript-eslint/no-floating-promises",
|
|
275
|
+
"no-constructor-return"
|
|
276
|
+
]
|
|
277
|
+
}
|
|
278
|
+
},
|
|
279
|
+
"C033": {
|
|
280
|
+
"name": "Separate Processing Logic and Data Queries",
|
|
281
|
+
"description": "Separate processing logic and data queries in service layer",
|
|
282
|
+
"category": "architecture",
|
|
283
|
+
"severity": "warning",
|
|
284
|
+
"languages": [
|
|
285
|
+
"typescript",
|
|
286
|
+
"javascript",
|
|
287
|
+
"dart",
|
|
288
|
+
"kotlin"
|
|
289
|
+
],
|
|
290
|
+
"analyzer": "./rules/common/C033_separate_logic_data/analyzer.js",
|
|
291
|
+
"config": "./rules/common/C033_separate_logic_data/config.json",
|
|
292
|
+
"version": "1.0.0",
|
|
293
|
+
"status": "stable",
|
|
294
|
+
"tags": [
|
|
295
|
+
"architecture",
|
|
296
|
+
"separation",
|
|
297
|
+
"service"
|
|
298
|
+
],
|
|
299
|
+
"engineMappings": {
|
|
300
|
+
"eslint": [
|
|
301
|
+
"prefer-const",
|
|
302
|
+
"no-var",
|
|
303
|
+
"@typescript-eslint/prefer-readonly"
|
|
304
|
+
]
|
|
305
|
+
}
|
|
306
|
+
},
|
|
307
|
+
"C034": {
|
|
308
|
+
"name": "Limit Direct Access to Global State",
|
|
309
|
+
"description": "Limit direct access to global state in domain logic",
|
|
310
|
+
"category": "architecture",
|
|
311
|
+
"severity": "warning",
|
|
312
|
+
"languages": [
|
|
313
|
+
"typescript",
|
|
314
|
+
"javascript",
|
|
315
|
+
"dart",
|
|
316
|
+
"kotlin"
|
|
317
|
+
],
|
|
318
|
+
"analyzer": "./rules/common/C034_limit_global_state/analyzer.js",
|
|
319
|
+
"config": "./rules/common/C034_limit_global_state/config.json",
|
|
320
|
+
"version": "1.0.0",
|
|
321
|
+
"status": "stable",
|
|
322
|
+
"tags": [
|
|
323
|
+
"architecture",
|
|
324
|
+
"global-state",
|
|
325
|
+
"design"
|
|
326
|
+
],
|
|
327
|
+
"engineMappings": {
|
|
328
|
+
"eslint": [
|
|
329
|
+
"no-global-assign",
|
|
330
|
+
"no-implicit-globals",
|
|
331
|
+
"@typescript-eslint/no-namespace"
|
|
332
|
+
]
|
|
333
|
+
}
|
|
334
|
+
},
|
|
335
|
+
"C037": {
|
|
336
|
+
"name": "Standard Response Objects",
|
|
337
|
+
"description": "API handlers should return standard response objects (not raw strings)",
|
|
338
|
+
"category": "api",
|
|
339
|
+
"severity": "warning",
|
|
340
|
+
"languages": [
|
|
341
|
+
"typescript",
|
|
342
|
+
"javascript",
|
|
343
|
+
"dart",
|
|
344
|
+
"kotlin"
|
|
345
|
+
],
|
|
346
|
+
"analyzer": "./rules/common/C037_standard_response/analyzer.js",
|
|
347
|
+
"config": "./rules/common/C037_standard_response/config.json",
|
|
348
|
+
"version": "1.0.0",
|
|
349
|
+
"status": "stable",
|
|
350
|
+
"tags": [
|
|
351
|
+
"api",
|
|
352
|
+
"response",
|
|
353
|
+
"standardization"
|
|
354
|
+
],
|
|
355
|
+
"engineMappings": {
|
|
356
|
+
"eslint": [
|
|
357
|
+
"consistent-return",
|
|
358
|
+
"@typescript-eslint/explicit-function-return-type",
|
|
359
|
+
"@typescript-eslint/explicit-module-boundary-types"
|
|
360
|
+
]
|
|
361
|
+
}
|
|
362
|
+
},
|
|
363
|
+
"C038": {
|
|
364
|
+
"name": "No File Loading Order Dependency",
|
|
365
|
+
"description": "Avoid logic depending on file/module loading order",
|
|
366
|
+
"category": "architecture",
|
|
367
|
+
"severity": "warning",
|
|
368
|
+
"languages": [
|
|
369
|
+
"typescript",
|
|
370
|
+
"javascript",
|
|
371
|
+
"dart",
|
|
372
|
+
"kotlin"
|
|
373
|
+
],
|
|
374
|
+
"analyzer": "./rules/common/C038_no_loading_order/analyzer.js",
|
|
375
|
+
"config": "./rules/common/C038_no_loading_order/config.json",
|
|
376
|
+
"version": "1.0.0",
|
|
377
|
+
"status": "stable",
|
|
378
|
+
"tags": [
|
|
379
|
+
"architecture",
|
|
380
|
+
"loading",
|
|
381
|
+
"dependency"
|
|
382
|
+
],
|
|
383
|
+
"engineMappings": {
|
|
384
|
+
"eslint": [
|
|
385
|
+
"import/no-dynamic-require",
|
|
386
|
+
"import/order",
|
|
387
|
+
"@typescript-eslint/no-var-requires"
|
|
388
|
+
]
|
|
389
|
+
}
|
|
390
|
+
},
|
|
391
|
+
"C040": {
|
|
392
|
+
"name": "Centralized Validation Logic",
|
|
393
|
+
"description": "Don't scatter validation logic across multiple classes",
|
|
394
|
+
"category": "validation",
|
|
395
|
+
"severity": "warning",
|
|
396
|
+
"languages": [
|
|
397
|
+
"typescript",
|
|
398
|
+
"javascript",
|
|
399
|
+
"dart",
|
|
400
|
+
"kotlin"
|
|
401
|
+
],
|
|
402
|
+
"analyzer": "./rules/common/C040_centralized_validation/analyzer.js",
|
|
403
|
+
"config": "./rules/common/C040_centralized_validation/config.json",
|
|
404
|
+
"version": "1.0.0",
|
|
405
|
+
"status": "stable",
|
|
406
|
+
"tags": [
|
|
407
|
+
"validation",
|
|
408
|
+
"centralization",
|
|
409
|
+
"architecture"
|
|
410
|
+
],
|
|
411
|
+
"engineMappings": {
|
|
412
|
+
"eslint": [
|
|
413
|
+
"no-duplicate-imports",
|
|
414
|
+
"import/no-duplicates",
|
|
415
|
+
"@typescript-eslint/no-duplicate-imports"
|
|
416
|
+
]
|
|
417
|
+
}
|
|
418
|
+
},
|
|
419
|
+
"C043": {
|
|
420
|
+
"name": "No Console Or Print",
|
|
421
|
+
"description": "Do not use console.log or print in production code",
|
|
422
|
+
"category": "logging",
|
|
423
|
+
"severity": "warning",
|
|
424
|
+
"languages": [
|
|
425
|
+
"typescript",
|
|
426
|
+
"javascript",
|
|
427
|
+
"dart"
|
|
428
|
+
],
|
|
429
|
+
"analyzer": "./rules/common/C043_no_console_or_print/analyzer.js",
|
|
430
|
+
"version": "1.0.0",
|
|
431
|
+
"status": "stable",
|
|
432
|
+
"tags": [
|
|
433
|
+
"logging",
|
|
434
|
+
"production",
|
|
435
|
+
"debugging",
|
|
436
|
+
"console"
|
|
437
|
+
],
|
|
438
|
+
"strategy": {
|
|
439
|
+
"preferred": "regex",
|
|
440
|
+
"fallbacks": [
|
|
441
|
+
"regex"
|
|
442
|
+
],
|
|
443
|
+
"accuracy": {
|
|
444
|
+
"regex": 90
|
|
445
|
+
}
|
|
446
|
+
}
|
|
447
|
+
},
|
|
448
|
+
"C076": {
|
|
449
|
+
"name": "One Assert Per Test",
|
|
450
|
+
"description": "Each test should assert only one behavior (Single Assert Rule)",
|
|
451
|
+
"category": "testing",
|
|
452
|
+
"severity": "warning",
|
|
453
|
+
"languages": [
|
|
454
|
+
"typescript",
|
|
455
|
+
"javascript"
|
|
456
|
+
],
|
|
457
|
+
"analyzer": "eslint",
|
|
458
|
+
"eslintRule": "custom/c076",
|
|
459
|
+
"version": "1.0.0",
|
|
460
|
+
"status": "stable",
|
|
461
|
+
"tags": [
|
|
462
|
+
"testing",
|
|
463
|
+
"unit-test",
|
|
464
|
+
"assertion"
|
|
465
|
+
]
|
|
466
|
+
},
|
|
467
|
+
"S001": {
|
|
468
|
+
"name": "Fail Securely",
|
|
469
|
+
"description": "Verify that if there is an error in access control, the system fails securely",
|
|
470
|
+
"category": "security",
|
|
471
|
+
"severity": "error",
|
|
472
|
+
"languages": [
|
|
473
|
+
"typescript",
|
|
474
|
+
"javascript"
|
|
475
|
+
],
|
|
476
|
+
"analyzer": "eslint",
|
|
477
|
+
"eslintRule": "custom/typescript_s001",
|
|
478
|
+
"version": "1.0.0",
|
|
479
|
+
"status": "stable",
|
|
480
|
+
"tags": [
|
|
481
|
+
"security",
|
|
482
|
+
"access-control",
|
|
483
|
+
"fail-safe"
|
|
484
|
+
],
|
|
485
|
+
"strategy": {
|
|
486
|
+
"preferred": "regex",
|
|
487
|
+
"fallbacks": [
|
|
488
|
+
"regex",
|
|
489
|
+
"ast"
|
|
490
|
+
],
|
|
491
|
+
"accuracy": {
|
|
492
|
+
"regex": 85,
|
|
493
|
+
"ast": 90
|
|
494
|
+
}
|
|
495
|
+
}
|
|
496
|
+
},
|
|
497
|
+
"S002": {
|
|
498
|
+
"name": "IDOR Check",
|
|
499
|
+
"description": "Insecure Direct Object Reference prevention",
|
|
500
|
+
"category": "security",
|
|
501
|
+
"severity": "error",
|
|
502
|
+
"languages": [
|
|
503
|
+
"typescript",
|
|
504
|
+
"javascript"
|
|
505
|
+
],
|
|
506
|
+
"analyzer": "eslint",
|
|
507
|
+
"eslintRule": "custom/typescript_s002",
|
|
508
|
+
"version": "1.0.0",
|
|
509
|
+
"status": "stable",
|
|
510
|
+
"tags": [
|
|
511
|
+
"security",
|
|
512
|
+
"idor",
|
|
513
|
+
"access-control"
|
|
514
|
+
]
|
|
515
|
+
},
|
|
516
|
+
"S003": {
|
|
517
|
+
"name": "No Unvalidated Redirect",
|
|
518
|
+
"description": "Prevent unvalidated redirects and forwards",
|
|
519
|
+
"category": "security",
|
|
520
|
+
"severity": "error",
|
|
521
|
+
"languages": [
|
|
522
|
+
"typescript",
|
|
523
|
+
"javascript"
|
|
524
|
+
],
|
|
525
|
+
"analyzer": "eslint",
|
|
526
|
+
"eslintRule": "custom/typescript_s003",
|
|
527
|
+
"version": "1.0.0",
|
|
528
|
+
"status": "stable",
|
|
529
|
+
"tags": [
|
|
530
|
+
"security",
|
|
531
|
+
"redirect",
|
|
532
|
+
"validation"
|
|
533
|
+
]
|
|
534
|
+
},
|
|
535
|
+
"S005": {
|
|
536
|
+
"name": "No Origin Header Authentication",
|
|
537
|
+
"description": "Do not use Origin header for authentication/access control",
|
|
538
|
+
"category": "security",
|
|
539
|
+
"severity": "error",
|
|
540
|
+
"languages": [
|
|
541
|
+
"typescript",
|
|
542
|
+
"javascript"
|
|
543
|
+
],
|
|
544
|
+
"analyzer": "eslint",
|
|
545
|
+
"eslintRule": "custom/typescript_s005",
|
|
546
|
+
"version": "1.0.0",
|
|
547
|
+
"status": "stable",
|
|
548
|
+
"tags": [
|
|
549
|
+
"security",
|
|
550
|
+
"authentication",
|
|
551
|
+
"headers"
|
|
552
|
+
]
|
|
553
|
+
},
|
|
554
|
+
"S006": {
|
|
555
|
+
"name": "Activation Recovery Secret Not Plaintext",
|
|
556
|
+
"description": "Activation recovery secret must not be in plaintext",
|
|
557
|
+
"category": "security",
|
|
558
|
+
"severity": "error",
|
|
559
|
+
"languages": [
|
|
560
|
+
"typescript",
|
|
561
|
+
"javascript"
|
|
562
|
+
],
|
|
563
|
+
"analyzer": "eslint",
|
|
564
|
+
"eslintRule": "custom/typescript_s006",
|
|
565
|
+
"version": "1.0.0",
|
|
566
|
+
"status": "stable",
|
|
567
|
+
"tags": [
|
|
568
|
+
"security",
|
|
569
|
+
"secrets",
|
|
570
|
+
"encryption"
|
|
571
|
+
]
|
|
572
|
+
},
|
|
573
|
+
"S007": {
|
|
574
|
+
"name": "No Plaintext OTP",
|
|
575
|
+
"description": "One-Time Passwords must not be stored in plaintext",
|
|
576
|
+
"category": "security",
|
|
577
|
+
"severity": "error",
|
|
578
|
+
"languages": [
|
|
579
|
+
"typescript",
|
|
580
|
+
"javascript"
|
|
581
|
+
],
|
|
582
|
+
"analyzer": "eslint",
|
|
583
|
+
"eslintRule": "custom/typescript_s007",
|
|
584
|
+
"version": "1.0.0",
|
|
585
|
+
"status": "stable",
|
|
586
|
+
"tags": [
|
|
587
|
+
"security",
|
|
588
|
+
"otp",
|
|
589
|
+
"encryption"
|
|
590
|
+
]
|
|
591
|
+
},
|
|
592
|
+
"S008": {
|
|
593
|
+
"name": "Crypto Agility",
|
|
594
|
+
"description": "Ensure cryptographic agility and algorithm flexibility",
|
|
595
|
+
"category": "security",
|
|
596
|
+
"severity": "error",
|
|
597
|
+
"languages": [
|
|
598
|
+
"typescript",
|
|
599
|
+
"javascript"
|
|
600
|
+
],
|
|
601
|
+
"analyzer": "eslint",
|
|
602
|
+
"eslintRule": "custom/typescript_s008",
|
|
603
|
+
"version": "1.0.0",
|
|
604
|
+
"status": "stable",
|
|
605
|
+
"tags": [
|
|
606
|
+
"security",
|
|
607
|
+
"cryptography",
|
|
608
|
+
"agility"
|
|
609
|
+
]
|
|
610
|
+
},
|
|
611
|
+
"S009": {
|
|
612
|
+
"name": "No Insecure Crypto",
|
|
613
|
+
"description": "Prevent usage of insecure cryptographic methods",
|
|
614
|
+
"category": "security",
|
|
615
|
+
"severity": "error",
|
|
616
|
+
"languages": [
|
|
617
|
+
"typescript",
|
|
618
|
+
"javascript"
|
|
619
|
+
],
|
|
620
|
+
"analyzer": "eslint",
|
|
621
|
+
"eslintRule": "custom/typescript_s009",
|
|
622
|
+
"version": "1.0.0",
|
|
623
|
+
"status": "stable",
|
|
624
|
+
"tags": [
|
|
625
|
+
"security",
|
|
626
|
+
"cryptography",
|
|
627
|
+
"insecure"
|
|
628
|
+
]
|
|
629
|
+
},
|
|
630
|
+
"S010": {
|
|
631
|
+
"name": "No Insecure Random in Sensitive Context",
|
|
632
|
+
"description": "Prevent insecure random generator usage in sensitive contexts",
|
|
633
|
+
"category": "security",
|
|
634
|
+
"severity": "error",
|
|
635
|
+
"languages": [
|
|
636
|
+
"typescript",
|
|
637
|
+
"javascript"
|
|
638
|
+
],
|
|
639
|
+
"analyzer": "eslint",
|
|
640
|
+
"eslintRule": "custom/typescript_s010",
|
|
641
|
+
"version": "1.0.0",
|
|
642
|
+
"status": "stable",
|
|
643
|
+
"tags": [
|
|
644
|
+
"security",
|
|
645
|
+
"random",
|
|
646
|
+
"sensitive"
|
|
647
|
+
]
|
|
648
|
+
},
|
|
649
|
+
"S011": {
|
|
650
|
+
"name": "No Insecure UUID",
|
|
651
|
+
"description": "UUID must be version 4 and use CSPRNG",
|
|
652
|
+
"category": "security",
|
|
653
|
+
"severity": "error",
|
|
654
|
+
"languages": [
|
|
655
|
+
"typescript",
|
|
656
|
+
"javascript"
|
|
657
|
+
],
|
|
658
|
+
"analyzer": "eslint",
|
|
659
|
+
"eslintRule": "custom/typescript_s011",
|
|
660
|
+
"version": "1.0.0",
|
|
661
|
+
"status": "stable",
|
|
662
|
+
"tags": [
|
|
663
|
+
"security",
|
|
664
|
+
"uuid",
|
|
665
|
+
"random"
|
|
666
|
+
]
|
|
667
|
+
},
|
|
668
|
+
"S012": {
|
|
669
|
+
"name": "No Hardcoded Secrets",
|
|
670
|
+
"description": "Prevent hardcoded secrets in source code",
|
|
671
|
+
"category": "security",
|
|
672
|
+
"severity": "error",
|
|
673
|
+
"languages": [
|
|
674
|
+
"typescript",
|
|
675
|
+
"javascript"
|
|
676
|
+
],
|
|
677
|
+
"analyzer": "eslint",
|
|
678
|
+
"eslintRule": "custom/typescript_s012",
|
|
679
|
+
"version": "1.0.0",
|
|
680
|
+
"status": "stable",
|
|
681
|
+
"tags": [
|
|
682
|
+
"security",
|
|
683
|
+
"secrets",
|
|
684
|
+
"hardcoded"
|
|
685
|
+
]
|
|
686
|
+
},
|
|
687
|
+
"S013": {
|
|
688
|
+
"name": "Verify TLS Connection",
|
|
689
|
+
"description": "Verify that TLS connections are properly established and validated",
|
|
690
|
+
"category": "security",
|
|
691
|
+
"severity": "error",
|
|
692
|
+
"languages": [
|
|
693
|
+
"typescript",
|
|
694
|
+
"javascript"
|
|
695
|
+
],
|
|
696
|
+
"analyzer": "eslint",
|
|
697
|
+
"eslintRule": "custom/typescript_s013",
|
|
698
|
+
"version": "1.0.0",
|
|
699
|
+
"status": "stable",
|
|
700
|
+
"tags": [
|
|
701
|
+
"security",
|
|
702
|
+
"tls",
|
|
703
|
+
"connection"
|
|
704
|
+
]
|
|
705
|
+
},
|
|
706
|
+
"S014": {
|
|
707
|
+
"name": "Insecure TLS Version",
|
|
708
|
+
"description": "Prevent usage of insecure TLS versions",
|
|
709
|
+
"category": "security",
|
|
710
|
+
"severity": "error",
|
|
711
|
+
"languages": [
|
|
712
|
+
"typescript",
|
|
713
|
+
"javascript"
|
|
714
|
+
],
|
|
715
|
+
"analyzer": "eslint",
|
|
716
|
+
"eslintRule": "custom/typescript_s014",
|
|
717
|
+
"version": "1.0.0",
|
|
718
|
+
"status": "stable",
|
|
719
|
+
"tags": [
|
|
720
|
+
"security",
|
|
721
|
+
"tls",
|
|
722
|
+
"encryption"
|
|
723
|
+
]
|
|
724
|
+
},
|
|
725
|
+
"S015": {
|
|
726
|
+
"name": "Insecure TLS Certificate",
|
|
727
|
+
"description": "Prevent usage of insecure TLS certificate configurations",
|
|
728
|
+
"category": "security",
|
|
729
|
+
"severity": "error",
|
|
730
|
+
"languages": [
|
|
731
|
+
"typescript",
|
|
732
|
+
"javascript"
|
|
733
|
+
],
|
|
734
|
+
"analyzer": "eslint",
|
|
735
|
+
"eslintRule": "custom/typescript_s015",
|
|
736
|
+
"version": "1.0.0",
|
|
737
|
+
"status": "stable",
|
|
738
|
+
"tags": [
|
|
739
|
+
"security",
|
|
740
|
+
"tls",
|
|
741
|
+
"certificates"
|
|
742
|
+
],
|
|
743
|
+
"strategy": {
|
|
744
|
+
"preferred": "ast",
|
|
745
|
+
"fallbacks": [
|
|
746
|
+
"ast",
|
|
747
|
+
"regex"
|
|
748
|
+
],
|
|
749
|
+
"accuracy": {
|
|
750
|
+
"ast": 95,
|
|
751
|
+
"regex": 80
|
|
752
|
+
}
|
|
753
|
+
}
|
|
754
|
+
},
|
|
755
|
+
"S016": {
|
|
756
|
+
"name": "Sensitive Query Parameter",
|
|
757
|
+
"description": "Prevent sensitive data in URL query parameters",
|
|
758
|
+
"category": "security",
|
|
759
|
+
"severity": "error",
|
|
760
|
+
"languages": [
|
|
761
|
+
"typescript",
|
|
762
|
+
"javascript"
|
|
763
|
+
],
|
|
764
|
+
"analyzer": "eslint",
|
|
765
|
+
"eslintRule": "custom/typescript_s016",
|
|
766
|
+
"version": "1.0.0",
|
|
767
|
+
"status": "stable",
|
|
768
|
+
"tags": [
|
|
769
|
+
"security",
|
|
770
|
+
"sensitive-data",
|
|
771
|
+
"url"
|
|
772
|
+
]
|
|
773
|
+
},
|
|
774
|
+
"S017": {
|
|
775
|
+
"name": "No SQL Injection",
|
|
776
|
+
"description": "Prevent SQL injection vulnerabilities",
|
|
777
|
+
"category": "security",
|
|
778
|
+
"severity": "error",
|
|
779
|
+
"languages": [
|
|
780
|
+
"typescript",
|
|
781
|
+
"javascript"
|
|
782
|
+
],
|
|
783
|
+
"analyzer": "eslint",
|
|
784
|
+
"eslintRule": "custom/typescript_s017",
|
|
785
|
+
"version": "1.0.0",
|
|
786
|
+
"status": "stable",
|
|
787
|
+
"tags": [
|
|
788
|
+
"security",
|
|
789
|
+
"sql-injection",
|
|
790
|
+
"database"
|
|
791
|
+
]
|
|
792
|
+
},
|
|
793
|
+
"S018": {
|
|
794
|
+
"name": "Positive Input Validation",
|
|
795
|
+
"description": "Ensure positive input validation patterns",
|
|
796
|
+
"category": "security",
|
|
797
|
+
"severity": "error",
|
|
798
|
+
"languages": [
|
|
799
|
+
"typescript",
|
|
800
|
+
"javascript"
|
|
801
|
+
],
|
|
802
|
+
"analyzer": "eslint",
|
|
803
|
+
"eslintRule": "custom/typescript_s018",
|
|
804
|
+
"version": "1.0.0",
|
|
805
|
+
"status": "stable",
|
|
806
|
+
"tags": [
|
|
807
|
+
"security",
|
|
808
|
+
"validation",
|
|
809
|
+
"input"
|
|
810
|
+
]
|
|
811
|
+
},
|
|
812
|
+
"S019": {
|
|
813
|
+
"name": "No Raw User Input in Email",
|
|
814
|
+
"description": "Prevent raw user input in email content",
|
|
815
|
+
"category": "security",
|
|
816
|
+
"severity": "error",
|
|
817
|
+
"languages": [
|
|
818
|
+
"typescript",
|
|
819
|
+
"javascript"
|
|
820
|
+
],
|
|
821
|
+
"analyzer": "eslint",
|
|
822
|
+
"eslintRule": "custom/typescript_s019",
|
|
823
|
+
"version": "1.0.0",
|
|
824
|
+
"status": "stable",
|
|
825
|
+
"tags": [
|
|
826
|
+
"security",
|
|
827
|
+
"email",
|
|
828
|
+
"injection"
|
|
829
|
+
]
|
|
830
|
+
},
|
|
831
|
+
"S020": {
|
|
832
|
+
"name": "No Eval Dynamic Execution",
|
|
833
|
+
"description": "Prevent eval and dynamic code execution",
|
|
834
|
+
"category": "security",
|
|
835
|
+
"severity": "error",
|
|
836
|
+
"languages": [
|
|
837
|
+
"typescript",
|
|
838
|
+
"javascript"
|
|
839
|
+
],
|
|
840
|
+
"analyzer": "eslint",
|
|
841
|
+
"eslintRule": "custom/typescript_s020",
|
|
842
|
+
"version": "1.0.0",
|
|
843
|
+
"status": "stable",
|
|
844
|
+
"tags": [
|
|
845
|
+
"security",
|
|
846
|
+
"eval",
|
|
847
|
+
"dynamic-execution"
|
|
848
|
+
]
|
|
849
|
+
},
|
|
850
|
+
"S022": {
|
|
851
|
+
"name": "Output Encoding Required",
|
|
852
|
+
"description": "Require output encoding for user input",
|
|
853
|
+
"category": "security",
|
|
854
|
+
"severity": "error",
|
|
855
|
+
"languages": [
|
|
856
|
+
"typescript",
|
|
857
|
+
"javascript"
|
|
858
|
+
],
|
|
859
|
+
"analyzer": "eslint",
|
|
860
|
+
"eslintRule": "custom/typescript_s022",
|
|
861
|
+
"version": "1.0.0",
|
|
862
|
+
"status": "stable",
|
|
863
|
+
"tags": [
|
|
864
|
+
"security",
|
|
865
|
+
"encoding",
|
|
866
|
+
"xss"
|
|
867
|
+
]
|
|
868
|
+
},
|
|
869
|
+
"S023": {
|
|
870
|
+
"name": "No JSON Injection",
|
|
871
|
+
"description": "Prevent JSON injection vulnerabilities",
|
|
872
|
+
"category": "security",
|
|
873
|
+
"severity": "error",
|
|
874
|
+
"languages": [
|
|
875
|
+
"typescript",
|
|
876
|
+
"javascript"
|
|
877
|
+
],
|
|
878
|
+
"analyzer": "eslint",
|
|
879
|
+
"eslintRule": "custom/typescript_s023",
|
|
880
|
+
"version": "1.0.0",
|
|
881
|
+
"status": "stable",
|
|
882
|
+
"tags": [
|
|
883
|
+
"security",
|
|
884
|
+
"json",
|
|
885
|
+
"injection"
|
|
886
|
+
],
|
|
887
|
+
"strategy": {
|
|
888
|
+
"preferred": "ast",
|
|
889
|
+
"fallbacks": [
|
|
890
|
+
"ast",
|
|
891
|
+
"regex"
|
|
892
|
+
],
|
|
893
|
+
"accuracy": {
|
|
894
|
+
"ast": 95,
|
|
895
|
+
"regex": 60
|
|
896
|
+
}
|
|
897
|
+
}
|
|
898
|
+
},
|
|
899
|
+
"S025": {
|
|
900
|
+
"name": "Server Side Input Validation",
|
|
901
|
+
"description": "Require server-side input validation",
|
|
902
|
+
"category": "security",
|
|
903
|
+
"severity": "error",
|
|
904
|
+
"languages": [
|
|
905
|
+
"typescript",
|
|
906
|
+
"javascript"
|
|
907
|
+
],
|
|
908
|
+
"analyzer": "eslint",
|
|
909
|
+
"eslintRule": "custom/typescript_s025",
|
|
910
|
+
"version": "1.0.0",
|
|
911
|
+
"status": "stable",
|
|
912
|
+
"tags": [
|
|
913
|
+
"security",
|
|
914
|
+
"validation",
|
|
915
|
+
"server-side"
|
|
916
|
+
]
|
|
917
|
+
},
|
|
918
|
+
"S026": {
|
|
919
|
+
"name": "JSON Schema Validation",
|
|
920
|
+
"description": "Require JSON schema validation",
|
|
921
|
+
"category": "security",
|
|
922
|
+
"severity": "warning",
|
|
923
|
+
"languages": [
|
|
924
|
+
"typescript",
|
|
925
|
+
"javascript"
|
|
926
|
+
],
|
|
927
|
+
"analyzer": "eslint",
|
|
928
|
+
"eslintRule": "custom/typescript_s026",
|
|
929
|
+
"version": "1.0.0",
|
|
930
|
+
"status": "stable",
|
|
931
|
+
"tags": [
|
|
932
|
+
"security",
|
|
933
|
+
"validation",
|
|
934
|
+
"json-schema"
|
|
935
|
+
]
|
|
936
|
+
},
|
|
937
|
+
"S027": {
|
|
938
|
+
"name": "No Hardcoded Secrets Advanced",
|
|
939
|
+
"description": "Advanced detection of hardcoded secrets",
|
|
940
|
+
"category": "security",
|
|
941
|
+
"severity": "error",
|
|
942
|
+
"languages": [
|
|
943
|
+
"typescript",
|
|
944
|
+
"javascript"
|
|
945
|
+
],
|
|
946
|
+
"analyzer": "eslint",
|
|
947
|
+
"eslintRule": "custom/typescript_s027",
|
|
948
|
+
"version": "1.0.0",
|
|
949
|
+
"status": "stable",
|
|
950
|
+
"tags": [
|
|
951
|
+
"security",
|
|
952
|
+
"secrets",
|
|
953
|
+
"hardcoded"
|
|
954
|
+
]
|
|
955
|
+
},
|
|
956
|
+
"S029": {
|
|
957
|
+
"name": "Require CSRF Protection",
|
|
958
|
+
"description": "Require CSRF protection for state-changing operations",
|
|
959
|
+
"category": "security",
|
|
960
|
+
"severity": "error",
|
|
961
|
+
"languages": [
|
|
962
|
+
"typescript",
|
|
963
|
+
"javascript"
|
|
964
|
+
],
|
|
965
|
+
"analyzer": "eslint",
|
|
966
|
+
"eslintRule": "custom/typescript_s029",
|
|
967
|
+
"version": "1.0.0",
|
|
968
|
+
"status": "stable",
|
|
969
|
+
"tags": [
|
|
970
|
+
"security",
|
|
971
|
+
"csrf",
|
|
972
|
+
"protection"
|
|
973
|
+
]
|
|
974
|
+
},
|
|
975
|
+
"S030": {
|
|
976
|
+
"name": "No Directory Browsing",
|
|
977
|
+
"description": "Prevent directory browsing vulnerabilities",
|
|
978
|
+
"category": "security",
|
|
979
|
+
"severity": "error",
|
|
980
|
+
"languages": [
|
|
981
|
+
"typescript",
|
|
982
|
+
"javascript"
|
|
983
|
+
],
|
|
984
|
+
"analyzer": "eslint",
|
|
985
|
+
"eslintRule": "custom/typescript_s030",
|
|
986
|
+
"version": "1.0.0",
|
|
987
|
+
"status": "stable",
|
|
988
|
+
"tags": [
|
|
989
|
+
"security",
|
|
990
|
+
"directory-browsing",
|
|
991
|
+
"information-disclosure"
|
|
992
|
+
]
|
|
993
|
+
},
|
|
994
|
+
"S033": {
|
|
995
|
+
"name": "Require SameSite Cookie",
|
|
996
|
+
"description": "Require SameSite attribute for cookies",
|
|
997
|
+
"category": "security",
|
|
998
|
+
"severity": "error",
|
|
999
|
+
"languages": [
|
|
1000
|
+
"typescript",
|
|
1001
|
+
"javascript"
|
|
1002
|
+
],
|
|
1003
|
+
"analyzer": "eslint",
|
|
1004
|
+
"eslintRule": "custom/typescript_s033",
|
|
1005
|
+
"version": "1.0.0",
|
|
1006
|
+
"status": "stable",
|
|
1007
|
+
"tags": [
|
|
1008
|
+
"security",
|
|
1009
|
+
"cookies",
|
|
1010
|
+
"samesite"
|
|
1011
|
+
]
|
|
1012
|
+
},
|
|
1013
|
+
"S034": {
|
|
1014
|
+
"name": "Require Host Cookie Prefix",
|
|
1015
|
+
"description": "Require __Host- prefix for secure cookies",
|
|
1016
|
+
"category": "security",
|
|
1017
|
+
"severity": "error",
|
|
1018
|
+
"languages": [
|
|
1019
|
+
"typescript",
|
|
1020
|
+
"javascript"
|
|
1021
|
+
],
|
|
1022
|
+
"analyzer": "eslint",
|
|
1023
|
+
"eslintRule": "custom/typescript_s034",
|
|
1024
|
+
"version": "1.0.0",
|
|
1025
|
+
"status": "stable",
|
|
1026
|
+
"tags": [
|
|
1027
|
+
"security",
|
|
1028
|
+
"cookies",
|
|
1029
|
+
"host-prefix"
|
|
1030
|
+
]
|
|
1031
|
+
},
|
|
1032
|
+
"S035": {
|
|
1033
|
+
"name": "Cookie Specific Path",
|
|
1034
|
+
"description": "Require specific path for sensitive cookies",
|
|
1035
|
+
"category": "security",
|
|
1036
|
+
"severity": "error",
|
|
1037
|
+
"languages": [
|
|
1038
|
+
"typescript",
|
|
1039
|
+
"javascript"
|
|
1040
|
+
],
|
|
1041
|
+
"analyzer": "eslint",
|
|
1042
|
+
"eslintRule": "custom/typescript_s035",
|
|
1043
|
+
"version": "1.0.0",
|
|
1044
|
+
"status": "stable",
|
|
1045
|
+
"tags": [
|
|
1046
|
+
"security",
|
|
1047
|
+
"cookies",
|
|
1048
|
+
"path"
|
|
1049
|
+
]
|
|
1050
|
+
},
|
|
1051
|
+
"S036": {
|
|
1052
|
+
"name": "No Unsafe File Include",
|
|
1053
|
+
"description": "Prevent unsafe file inclusion vulnerabilities",
|
|
1054
|
+
"category": "security",
|
|
1055
|
+
"severity": "error",
|
|
1056
|
+
"languages": [
|
|
1057
|
+
"typescript",
|
|
1058
|
+
"javascript"
|
|
1059
|
+
],
|
|
1060
|
+
"analyzer": "eslint",
|
|
1061
|
+
"eslintRule": "custom/typescript_s036",
|
|
1062
|
+
"version": "1.0.0",
|
|
1063
|
+
"status": "stable",
|
|
1064
|
+
"tags": [
|
|
1065
|
+
"security",
|
|
1066
|
+
"file-inclusion",
|
|
1067
|
+
"path-traversal"
|
|
1068
|
+
]
|
|
1069
|
+
},
|
|
1070
|
+
"S037": {
|
|
1071
|
+
"name": "Require Anti Cache Headers",
|
|
1072
|
+
"description": "Require anti-cache headers for sensitive content",
|
|
1073
|
+
"category": "security",
|
|
1074
|
+
"severity": "warning",
|
|
1075
|
+
"languages": [
|
|
1076
|
+
"typescript",
|
|
1077
|
+
"javascript"
|
|
1078
|
+
],
|
|
1079
|
+
"analyzer": "eslint",
|
|
1080
|
+
"eslintRule": "custom/typescript_s037",
|
|
1081
|
+
"version": "1.0.0",
|
|
1082
|
+
"status": "stable",
|
|
1083
|
+
"tags": [
|
|
1084
|
+
"security",
|
|
1085
|
+
"caching",
|
|
1086
|
+
"headers"
|
|
1087
|
+
]
|
|
1088
|
+
},
|
|
1089
|
+
"S038": {
|
|
1090
|
+
"name": "No Version Disclosure",
|
|
1091
|
+
"description": "Prevent version information disclosure",
|
|
1092
|
+
"category": "security",
|
|
1093
|
+
"severity": "warning",
|
|
1094
|
+
"languages": [
|
|
1095
|
+
"typescript",
|
|
1096
|
+
"javascript"
|
|
1097
|
+
],
|
|
1098
|
+
"analyzer": "eslint",
|
|
1099
|
+
"eslintRule": "custom/typescript_s038",
|
|
1100
|
+
"version": "1.0.0",
|
|
1101
|
+
"status": "stable",
|
|
1102
|
+
"tags": [
|
|
1103
|
+
"security",
|
|
1104
|
+
"information-disclosure",
|
|
1105
|
+
"version"
|
|
1106
|
+
]
|
|
1107
|
+
},
|
|
1108
|
+
"S039": {
|
|
1109
|
+
"name": "No Session Token in URL",
|
|
1110
|
+
"description": "Prevent session tokens in URL parameters",
|
|
1111
|
+
"category": "security",
|
|
1112
|
+
"severity": "error",
|
|
1113
|
+
"languages": [
|
|
1114
|
+
"typescript",
|
|
1115
|
+
"javascript"
|
|
1116
|
+
],
|
|
1117
|
+
"analyzer": "eslint",
|
|
1118
|
+
"eslintRule": "custom/typescript_s039",
|
|
1119
|
+
"version": "1.0.0",
|
|
1120
|
+
"status": "stable",
|
|
1121
|
+
"tags": [
|
|
1122
|
+
"security",
|
|
1123
|
+
"session",
|
|
1124
|
+
"url"
|
|
1125
|
+
]
|
|
1126
|
+
},
|
|
1127
|
+
"S041": {
|
|
1128
|
+
"name": "Require Session Invalidate on Logout",
|
|
1129
|
+
"description": "Require session invalidation on logout",
|
|
1130
|
+
"category": "security",
|
|
1131
|
+
"severity": "error",
|
|
1132
|
+
"languages": [
|
|
1133
|
+
"typescript",
|
|
1134
|
+
"javascript"
|
|
1135
|
+
],
|
|
1136
|
+
"analyzer": "eslint",
|
|
1137
|
+
"eslintRule": "custom/typescript_s041",
|
|
1138
|
+
"version": "1.0.0",
|
|
1139
|
+
"status": "stable",
|
|
1140
|
+
"tags": [
|
|
1141
|
+
"security",
|
|
1142
|
+
"session",
|
|
1143
|
+
"logout"
|
|
1144
|
+
]
|
|
1145
|
+
},
|
|
1146
|
+
"S042": {
|
|
1147
|
+
"name": "Require Periodic Reauthentication",
|
|
1148
|
+
"description": "Require periodic re-authentication for sensitive operations",
|
|
1149
|
+
"category": "security",
|
|
1150
|
+
"severity": "error",
|
|
1151
|
+
"languages": [
|
|
1152
|
+
"typescript",
|
|
1153
|
+
"javascript"
|
|
1154
|
+
],
|
|
1155
|
+
"analyzer": "eslint",
|
|
1156
|
+
"eslintRule": "custom/typescript_s042",
|
|
1157
|
+
"version": "1.0.0",
|
|
1158
|
+
"status": "stable",
|
|
1159
|
+
"tags": [
|
|
1160
|
+
"security",
|
|
1161
|
+
"authentication",
|
|
1162
|
+
"periodic"
|
|
1163
|
+
]
|
|
1164
|
+
},
|
|
1165
|
+
"S043": {
|
|
1166
|
+
"name": "Terminate Sessions on Password Change",
|
|
1167
|
+
"description": "Terminate all sessions when password changes",
|
|
1168
|
+
"category": "security",
|
|
1169
|
+
"severity": "error",
|
|
1170
|
+
"languages": [
|
|
1171
|
+
"typescript",
|
|
1172
|
+
"javascript"
|
|
1173
|
+
],
|
|
1174
|
+
"analyzer": "eslint",
|
|
1175
|
+
"eslintRule": "custom/typescript_s043",
|
|
1176
|
+
"version": "1.0.0",
|
|
1177
|
+
"status": "stable",
|
|
1178
|
+
"tags": [
|
|
1179
|
+
"security",
|
|
1180
|
+
"session",
|
|
1181
|
+
"password"
|
|
1182
|
+
]
|
|
1183
|
+
},
|
|
1184
|
+
"S044": {
|
|
1185
|
+
"name": "Require Full Session for Sensitive Operations",
|
|
1186
|
+
"description": "Require full session validation for sensitive operations",
|
|
1187
|
+
"category": "security",
|
|
1188
|
+
"severity": "error",
|
|
1189
|
+
"languages": [
|
|
1190
|
+
"typescript",
|
|
1191
|
+
"javascript"
|
|
1192
|
+
],
|
|
1193
|
+
"analyzer": "eslint",
|
|
1194
|
+
"eslintRule": "custom/typescript_s044",
|
|
1195
|
+
"version": "1.0.0",
|
|
1196
|
+
"status": "stable",
|
|
1197
|
+
"tags": [
|
|
1198
|
+
"security",
|
|
1199
|
+
"session",
|
|
1200
|
+
"validation"
|
|
1201
|
+
]
|
|
1202
|
+
},
|
|
1203
|
+
"S045": {
|
|
1204
|
+
"name": "Anti Automation Controls",
|
|
1205
|
+
"description": "Implement anti-automation controls",
|
|
1206
|
+
"category": "security",
|
|
1207
|
+
"severity": "warning",
|
|
1208
|
+
"languages": [
|
|
1209
|
+
"typescript",
|
|
1210
|
+
"javascript"
|
|
1211
|
+
],
|
|
1212
|
+
"analyzer": "eslint",
|
|
1213
|
+
"eslintRule": "custom/typescript_s045",
|
|
1214
|
+
"version": "1.0.0",
|
|
1215
|
+
"status": "stable",
|
|
1216
|
+
"tags": [
|
|
1217
|
+
"security",
|
|
1218
|
+
"automation",
|
|
1219
|
+
"protection"
|
|
1220
|
+
]
|
|
1221
|
+
},
|
|
1222
|
+
"S046": {
|
|
1223
|
+
"name": "Secure Notification on Auth Change",
|
|
1224
|
+
"description": "Require secure notification on authentication changes",
|
|
1225
|
+
"category": "security",
|
|
1226
|
+
"severity": "warning",
|
|
1227
|
+
"languages": [
|
|
1228
|
+
"typescript",
|
|
1229
|
+
"javascript"
|
|
1230
|
+
],
|
|
1231
|
+
"analyzer": "eslint",
|
|
1232
|
+
"eslintRule": "custom/typescript_s046",
|
|
1233
|
+
"version": "1.0.0",
|
|
1234
|
+
"status": "stable",
|
|
1235
|
+
"tags": [
|
|
1236
|
+
"security",
|
|
1237
|
+
"notification",
|
|
1238
|
+
"authentication"
|
|
1239
|
+
]
|
|
1240
|
+
},
|
|
1241
|
+
"S047": {
|
|
1242
|
+
"name": "Secure Random Password Generation",
|
|
1243
|
+
"description": "Require secure and random initial password generation",
|
|
1244
|
+
"category": "security",
|
|
1245
|
+
"severity": "error",
|
|
1246
|
+
"languages": [
|
|
1247
|
+
"typescript",
|
|
1248
|
+
"javascript"
|
|
1249
|
+
],
|
|
1250
|
+
"analyzer": "eslint",
|
|
1251
|
+
"eslintRule": "custom/typescript_s047",
|
|
1252
|
+
"version": "1.0.0",
|
|
1253
|
+
"status": "stable",
|
|
1254
|
+
"tags": [
|
|
1255
|
+
"security",
|
|
1256
|
+
"password",
|
|
1257
|
+
"random"
|
|
1258
|
+
]
|
|
1259
|
+
},
|
|
1260
|
+
"S048": {
|
|
1261
|
+
"name": "Password Credential Recovery",
|
|
1262
|
+
"description": "Secure password credential recovery process",
|
|
1263
|
+
"category": "security",
|
|
1264
|
+
"severity": "error",
|
|
1265
|
+
"languages": [
|
|
1266
|
+
"typescript",
|
|
1267
|
+
"javascript"
|
|
1268
|
+
],
|
|
1269
|
+
"analyzer": "eslint",
|
|
1270
|
+
"eslintRule": "custom/typescript_s048",
|
|
1271
|
+
"version": "1.0.0",
|
|
1272
|
+
"status": "stable",
|
|
1273
|
+
"tags": [
|
|
1274
|
+
"security",
|
|
1275
|
+
"password",
|
|
1276
|
+
"recovery"
|
|
1277
|
+
]
|
|
1278
|
+
},
|
|
1279
|
+
"S050": {
|
|
1280
|
+
"name": "Session Token Weak Hash",
|
|
1281
|
+
"description": "Prevent weak hashing for session tokens",
|
|
1282
|
+
"category": "security",
|
|
1283
|
+
"severity": "error",
|
|
1284
|
+
"languages": [
|
|
1285
|
+
"typescript",
|
|
1286
|
+
"javascript"
|
|
1287
|
+
],
|
|
1288
|
+
"analyzer": "eslint",
|
|
1289
|
+
"eslintRule": "custom/typescript_s050",
|
|
1290
|
+
"version": "1.0.0",
|
|
1291
|
+
"status": "stable",
|
|
1292
|
+
"tags": [
|
|
1293
|
+
"security",
|
|
1294
|
+
"session",
|
|
1295
|
+
"hashing"
|
|
1296
|
+
]
|
|
1297
|
+
},
|
|
1298
|
+
"S052": {
|
|
1299
|
+
"name": "Secure Random Authentication Code",
|
|
1300
|
+
"description": "Require secure random number generation for authentication codes",
|
|
1301
|
+
"category": "security",
|
|
1302
|
+
"severity": "error",
|
|
1303
|
+
"languages": [
|
|
1304
|
+
"typescript",
|
|
1305
|
+
"javascript"
|
|
1306
|
+
],
|
|
1307
|
+
"analyzer": "eslint",
|
|
1308
|
+
"eslintRule": "custom/typescript_s052",
|
|
1309
|
+
"version": "1.0.0",
|
|
1310
|
+
"status": "stable",
|
|
1311
|
+
"tags": [
|
|
1312
|
+
"security",
|
|
1313
|
+
"random",
|
|
1314
|
+
"authentication"
|
|
1315
|
+
]
|
|
1316
|
+
},
|
|
1317
|
+
"S054": {
|
|
1318
|
+
"name": "Verification Default Account",
|
|
1319
|
+
"description": "Verify and secure default accounts",
|
|
1320
|
+
"category": "security",
|
|
1321
|
+
"severity": "error",
|
|
1322
|
+
"languages": [
|
|
1323
|
+
"typescript",
|
|
1324
|
+
"javascript"
|
|
1325
|
+
],
|
|
1326
|
+
"analyzer": "eslint",
|
|
1327
|
+
"eslintRule": "custom/typescript_s054",
|
|
1328
|
+
"version": "1.0.0",
|
|
1329
|
+
"status": "stable",
|
|
1330
|
+
"tags": [
|
|
1331
|
+
"security",
|
|
1332
|
+
"accounts",
|
|
1333
|
+
"default"
|
|
1334
|
+
]
|
|
1335
|
+
},
|
|
1336
|
+
"S055": {
|
|
1337
|
+
"name": "REST Content-Type Verification",
|
|
1338
|
+
"description": "Verify incoming Content-Type in REST API endpoints",
|
|
1339
|
+
"category": "security",
|
|
1340
|
+
"severity": "error",
|
|
1341
|
+
"languages": [
|
|
1342
|
+
"typescript",
|
|
1343
|
+
"javascript"
|
|
1344
|
+
],
|
|
1345
|
+
"analyzer": "eslint",
|
|
1346
|
+
"eslintRule": "custom/typescript_s055",
|
|
1347
|
+
"version": "1.0.0",
|
|
1348
|
+
"status": "stable",
|
|
1349
|
+
"tags": [
|
|
1350
|
+
"security",
|
|
1351
|
+
"rest",
|
|
1352
|
+
"content-type"
|
|
1353
|
+
]
|
|
1354
|
+
},
|
|
1355
|
+
"S057": {
|
|
1356
|
+
"name": "UTC Logging",
|
|
1357
|
+
"description": "Enforce UTC usage in time formatting and logging",
|
|
1358
|
+
"category": "security",
|
|
1359
|
+
"severity": "warning",
|
|
1360
|
+
"languages": [
|
|
1361
|
+
"typescript",
|
|
1362
|
+
"javascript"
|
|
1363
|
+
],
|
|
1364
|
+
"analyzer": "eslint",
|
|
1365
|
+
"eslintRule": "custom/typescript_s057",
|
|
1366
|
+
"version": "1.0.0",
|
|
1367
|
+
"status": "stable",
|
|
1368
|
+
"tags": [
|
|
1369
|
+
"security",
|
|
1370
|
+
"logging",
|
|
1371
|
+
"timezone"
|
|
1372
|
+
]
|
|
1373
|
+
},
|
|
1374
|
+
"S058": {
|
|
1375
|
+
"name": "No SSRF",
|
|
1376
|
+
"description": "Detect SSRF vulnerabilities via unvalidated user-controlled URLs",
|
|
1377
|
+
"category": "security",
|
|
1378
|
+
"severity": "error",
|
|
1379
|
+
"languages": [
|
|
1380
|
+
"typescript",
|
|
1381
|
+
"javascript"
|
|
1382
|
+
],
|
|
1383
|
+
"analyzer": "eslint",
|
|
1384
|
+
"eslintRule": "custom/typescript_s058",
|
|
1385
|
+
"version": "1.0.0",
|
|
1386
|
+
"status": "stable",
|
|
1387
|
+
"tags": [
|
|
1388
|
+
"security",
|
|
1389
|
+
"ssrf",
|
|
1390
|
+
"url-validation"
|
|
1391
|
+
]
|
|
1392
|
+
},
|
|
1393
|
+
"C002": {
|
|
1394
|
+
"id": "C002",
|
|
1395
|
+
"name": "Rule C002",
|
|
1396
|
+
"description": "Auto-migrated rule C002 from ESLint mapping",
|
|
1397
|
+
"category": "general",
|
|
1398
|
+
"severity": "warning",
|
|
1399
|
+
"languages": [
|
|
1400
|
+
"typescript",
|
|
1401
|
+
"javascript"
|
|
1402
|
+
],
|
|
1403
|
+
"version": "1.0.0",
|
|
1404
|
+
"status": "migrated",
|
|
1405
|
+
"tags": [
|
|
1406
|
+
"migrated"
|
|
1407
|
+
],
|
|
1408
|
+
"engineMappings": {
|
|
1409
|
+
"eslint": [
|
|
1410
|
+
"custom/no-duplicate-code"
|
|
1411
|
+
]
|
|
1412
|
+
},
|
|
1413
|
+
"strategy": {
|
|
1414
|
+
"preferred": "regex",
|
|
1415
|
+
"fallbacks": [
|
|
1416
|
+
"regex"
|
|
1417
|
+
],
|
|
1418
|
+
"accuracy": {}
|
|
1419
|
+
}
|
|
1420
|
+
},
|
|
1421
|
+
"C003": {
|
|
1422
|
+
"id": "C003",
|
|
1423
|
+
"name": "Rule C003",
|
|
1424
|
+
"description": "Auto-migrated rule C003 from ESLint mapping",
|
|
1425
|
+
"category": "general",
|
|
1426
|
+
"severity": "warning",
|
|
1427
|
+
"languages": [
|
|
1428
|
+
"typescript",
|
|
1429
|
+
"javascript"
|
|
1430
|
+
],
|
|
1431
|
+
"version": "1.0.0",
|
|
1432
|
+
"status": "migrated",
|
|
1433
|
+
"tags": [
|
|
1434
|
+
"migrated"
|
|
1435
|
+
],
|
|
1436
|
+
"engineMappings": {
|
|
1437
|
+
"eslint": [
|
|
1438
|
+
"custom/no-vague-abbreviations"
|
|
1439
|
+
]
|
|
1440
|
+
},
|
|
1441
|
+
"strategy": {
|
|
1442
|
+
"preferred": "regex",
|
|
1443
|
+
"fallbacks": [
|
|
1444
|
+
"regex"
|
|
1445
|
+
],
|
|
1446
|
+
"accuracy": {}
|
|
1447
|
+
}
|
|
1448
|
+
},
|
|
1449
|
+
"C013": {
|
|
1450
|
+
"id": "C013",
|
|
1451
|
+
"name": "Rule C013",
|
|
1452
|
+
"description": "Auto-migrated rule C013 from ESLint mapping",
|
|
1453
|
+
"category": "general",
|
|
1454
|
+
"severity": "warning",
|
|
1455
|
+
"languages": [
|
|
1456
|
+
"typescript",
|
|
1457
|
+
"javascript"
|
|
1458
|
+
],
|
|
1459
|
+
"version": "1.0.0",
|
|
1460
|
+
"status": "migrated",
|
|
1461
|
+
"tags": [
|
|
1462
|
+
"migrated"
|
|
1463
|
+
],
|
|
1464
|
+
"engineMappings": {
|
|
1465
|
+
"eslint": [
|
|
1466
|
+
"custom/no-dead-code"
|
|
1467
|
+
]
|
|
1468
|
+
},
|
|
1469
|
+
"strategy": {
|
|
1470
|
+
"preferred": "regex",
|
|
1471
|
+
"fallbacks": [
|
|
1472
|
+
"regex"
|
|
1473
|
+
],
|
|
1474
|
+
"accuracy": {}
|
|
1475
|
+
}
|
|
1476
|
+
},
|
|
1477
|
+
"C014": {
|
|
1478
|
+
"id": "C014",
|
|
1479
|
+
"name": "Rule C014",
|
|
1480
|
+
"description": "Auto-migrated rule C014 from ESLint mapping",
|
|
1481
|
+
"category": "general",
|
|
1482
|
+
"severity": "warning",
|
|
1483
|
+
"languages": [
|
|
1484
|
+
"typescript",
|
|
1485
|
+
"javascript"
|
|
1486
|
+
],
|
|
1487
|
+
"version": "1.0.0",
|
|
1488
|
+
"status": "migrated",
|
|
1489
|
+
"tags": [
|
|
1490
|
+
"migrated"
|
|
1491
|
+
],
|
|
1492
|
+
"engineMappings": {
|
|
1493
|
+
"eslint": [
|
|
1494
|
+
"no-new",
|
|
1495
|
+
"no-new-wrappers",
|
|
1496
|
+
"@typescript-eslint/no-unnecessary-constructor"
|
|
1497
|
+
]
|
|
1498
|
+
},
|
|
1499
|
+
"strategy": {
|
|
1500
|
+
"preferred": "regex",
|
|
1501
|
+
"fallbacks": [
|
|
1502
|
+
"regex"
|
|
1503
|
+
],
|
|
1504
|
+
"accuracy": {}
|
|
1505
|
+
}
|
|
1506
|
+
},
|
|
1507
|
+
"C017": {
|
|
1508
|
+
"id": "C017",
|
|
1509
|
+
"name": "Rule C017",
|
|
1510
|
+
"description": "Auto-migrated rule C017 from ESLint mapping",
|
|
1511
|
+
"category": "general",
|
|
1512
|
+
"severity": "warning",
|
|
1513
|
+
"languages": [
|
|
1514
|
+
"typescript",
|
|
1515
|
+
"javascript"
|
|
1516
|
+
],
|
|
1517
|
+
"version": "1.0.0",
|
|
1518
|
+
"status": "migrated",
|
|
1519
|
+
"tags": [
|
|
1520
|
+
"migrated"
|
|
1521
|
+
],
|
|
1522
|
+
"engineMappings": {
|
|
1523
|
+
"eslint": [
|
|
1524
|
+
"custom/limit-constructor-logic"
|
|
1525
|
+
]
|
|
1526
|
+
},
|
|
1527
|
+
"strategy": {
|
|
1528
|
+
"preferred": "ast",
|
|
1529
|
+
"fallbacks": [
|
|
1530
|
+
"ast",
|
|
1531
|
+
"regex"
|
|
1532
|
+
],
|
|
1533
|
+
"accuracy": {
|
|
1534
|
+
"ast": 90,
|
|
1535
|
+
"regex": 70
|
|
1536
|
+
}
|
|
1537
|
+
}
|
|
1538
|
+
},
|
|
1539
|
+
"C018": {
|
|
1540
|
+
"id": "C018",
|
|
1541
|
+
"name": "Rule C018",
|
|
1542
|
+
"description": "Auto-migrated rule C018 from ESLint mapping",
|
|
1543
|
+
"category": "general",
|
|
1544
|
+
"severity": "warning",
|
|
1545
|
+
"languages": [
|
|
1546
|
+
"typescript",
|
|
1547
|
+
"javascript"
|
|
1548
|
+
],
|
|
1549
|
+
"version": "1.0.0",
|
|
1550
|
+
"status": "migrated",
|
|
1551
|
+
"tags": [
|
|
1552
|
+
"migrated"
|
|
1553
|
+
],
|
|
1554
|
+
"engineMappings": {
|
|
1555
|
+
"eslint": [
|
|
1556
|
+
"custom/no-generic-throw"
|
|
1557
|
+
]
|
|
1558
|
+
},
|
|
1559
|
+
"strategy": {
|
|
1560
|
+
"preferred": "regex",
|
|
1561
|
+
"fallbacks": [
|
|
1562
|
+
"regex"
|
|
1563
|
+
],
|
|
1564
|
+
"accuracy": {}
|
|
1565
|
+
}
|
|
1566
|
+
},
|
|
1567
|
+
"C023": {
|
|
1568
|
+
"id": "C023",
|
|
1569
|
+
"name": "Rule C023",
|
|
1570
|
+
"description": "Auto-migrated rule C023 from ESLint mapping",
|
|
1571
|
+
"category": "general",
|
|
1572
|
+
"severity": "warning",
|
|
1573
|
+
"languages": [
|
|
1574
|
+
"typescript",
|
|
1575
|
+
"javascript"
|
|
1576
|
+
],
|
|
1577
|
+
"version": "1.0.0",
|
|
1578
|
+
"status": "migrated",
|
|
1579
|
+
"tags": [
|
|
1580
|
+
"migrated"
|
|
1581
|
+
],
|
|
1582
|
+
"engineMappings": {
|
|
1583
|
+
"eslint": [
|
|
1584
|
+
"custom/no-duplicate-variable-name-in-scope"
|
|
1585
|
+
]
|
|
1586
|
+
},
|
|
1587
|
+
"strategy": {
|
|
1588
|
+
"preferred": "regex",
|
|
1589
|
+
"fallbacks": [
|
|
1590
|
+
"regex"
|
|
1591
|
+
],
|
|
1592
|
+
"accuracy": {}
|
|
1593
|
+
}
|
|
1594
|
+
},
|
|
1595
|
+
"C030": {
|
|
1596
|
+
"id": "C030",
|
|
1597
|
+
"name": "Rule C030",
|
|
1598
|
+
"description": "Auto-migrated rule C030 from ESLint mapping",
|
|
1599
|
+
"category": "general",
|
|
1600
|
+
"severity": "warning",
|
|
1601
|
+
"languages": [
|
|
1602
|
+
"typescript",
|
|
1603
|
+
"javascript"
|
|
1604
|
+
],
|
|
1605
|
+
"version": "1.0.0",
|
|
1606
|
+
"status": "migrated",
|
|
1607
|
+
"tags": [
|
|
1608
|
+
"migrated"
|
|
1609
|
+
],
|
|
1610
|
+
"engineMappings": {
|
|
1611
|
+
"eslint": [
|
|
1612
|
+
"custom/use-custom-error-classes"
|
|
1613
|
+
]
|
|
1614
|
+
},
|
|
1615
|
+
"strategy": {
|
|
1616
|
+
"preferred": "regex",
|
|
1617
|
+
"fallbacks": [
|
|
1618
|
+
"regex"
|
|
1619
|
+
],
|
|
1620
|
+
"accuracy": {}
|
|
1621
|
+
}
|
|
1622
|
+
},
|
|
1623
|
+
"C035": {
|
|
1624
|
+
"id": "C035",
|
|
1625
|
+
"name": "Rule C035",
|
|
1626
|
+
"description": "Auto-migrated rule C035 from ESLint mapping",
|
|
1627
|
+
"category": "general",
|
|
1628
|
+
"severity": "warning",
|
|
1629
|
+
"languages": [
|
|
1630
|
+
"typescript",
|
|
1631
|
+
"javascript"
|
|
1632
|
+
],
|
|
1633
|
+
"version": "1.0.0",
|
|
1634
|
+
"status": "migrated",
|
|
1635
|
+
"tags": [
|
|
1636
|
+
"migrated"
|
|
1637
|
+
],
|
|
1638
|
+
"engineMappings": {
|
|
1639
|
+
"eslint": [
|
|
1640
|
+
"no-empty-catch",
|
|
1641
|
+
"@typescript-eslint/no-unused-vars"
|
|
1642
|
+
]
|
|
1643
|
+
},
|
|
1644
|
+
"strategy": {
|
|
1645
|
+
"preferred": "regex",
|
|
1646
|
+
"fallbacks": [
|
|
1647
|
+
"regex"
|
|
1648
|
+
],
|
|
1649
|
+
"accuracy": {}
|
|
1650
|
+
}
|
|
1651
|
+
},
|
|
1652
|
+
"C041": {
|
|
1653
|
+
"id": "C041",
|
|
1654
|
+
"name": "Rule C041",
|
|
1655
|
+
"description": "Auto-migrated rule C041 from ESLint mapping",
|
|
1656
|
+
"category": "general",
|
|
1657
|
+
"severity": "warning",
|
|
1658
|
+
"languages": [
|
|
1659
|
+
"typescript",
|
|
1660
|
+
"javascript"
|
|
1661
|
+
],
|
|
1662
|
+
"version": "1.0.0",
|
|
1663
|
+
"status": "migrated",
|
|
1664
|
+
"tags": [
|
|
1665
|
+
"migrated"
|
|
1666
|
+
],
|
|
1667
|
+
"engineMappings": {
|
|
1668
|
+
"eslint": [
|
|
1669
|
+
"custom/no-config-inline"
|
|
1670
|
+
]
|
|
1671
|
+
},
|
|
1672
|
+
"strategy": {
|
|
1673
|
+
"preferred": "regex",
|
|
1674
|
+
"fallbacks": [
|
|
1675
|
+
"regex"
|
|
1676
|
+
],
|
|
1677
|
+
"accuracy": {}
|
|
1678
|
+
}
|
|
1679
|
+
},
|
|
1680
|
+
"C042": {
|
|
1681
|
+
"id": "C042",
|
|
1682
|
+
"name": "Rule C042",
|
|
1683
|
+
"description": "Auto-migrated rule C042 from ESLint mapping",
|
|
1684
|
+
"category": "general",
|
|
1685
|
+
"severity": "warning",
|
|
1686
|
+
"languages": [
|
|
1687
|
+
"typescript",
|
|
1688
|
+
"javascript"
|
|
1689
|
+
],
|
|
1690
|
+
"version": "1.0.0",
|
|
1691
|
+
"status": "migrated",
|
|
1692
|
+
"tags": [
|
|
1693
|
+
"migrated"
|
|
1694
|
+
],
|
|
1695
|
+
"engineMappings": {
|
|
1696
|
+
"eslint": [
|
|
1697
|
+
"custom/boolean-name-prefix"
|
|
1698
|
+
]
|
|
1699
|
+
},
|
|
1700
|
+
"strategy": {
|
|
1701
|
+
"preferred": "regex",
|
|
1702
|
+
"fallbacks": [
|
|
1703
|
+
"regex"
|
|
1704
|
+
],
|
|
1705
|
+
"accuracy": {}
|
|
1706
|
+
}
|
|
1707
|
+
},
|
|
1708
|
+
"C047": {
|
|
1709
|
+
"id": "C047",
|
|
1710
|
+
"name": "Rule C047",
|
|
1711
|
+
"description": "Auto-migrated rule C047 from ESLint mapping",
|
|
1712
|
+
"category": "general",
|
|
1713
|
+
"severity": "warning",
|
|
1714
|
+
"languages": [
|
|
1715
|
+
"typescript",
|
|
1716
|
+
"javascript"
|
|
1717
|
+
],
|
|
1718
|
+
"version": "1.0.0",
|
|
1719
|
+
"status": "migrated",
|
|
1720
|
+
"tags": [
|
|
1721
|
+
"migrated"
|
|
1722
|
+
],
|
|
1723
|
+
"engineMappings": {
|
|
1724
|
+
"eslint": [
|
|
1725
|
+
"custom/no-duplicate-retry-logic"
|
|
1726
|
+
]
|
|
1727
|
+
},
|
|
1728
|
+
"strategy": {
|
|
1729
|
+
"preferred": "regex",
|
|
1730
|
+
"fallbacks": [
|
|
1731
|
+
"regex"
|
|
1732
|
+
],
|
|
1733
|
+
"accuracy": {}
|
|
1734
|
+
}
|
|
1735
|
+
},
|
|
1736
|
+
"C072": {
|
|
1737
|
+
"id": "C072",
|
|
1738
|
+
"name": "Rule C072",
|
|
1739
|
+
"description": "Auto-migrated rule C072 from ESLint mapping",
|
|
1740
|
+
"category": "general",
|
|
1741
|
+
"severity": "warning",
|
|
1742
|
+
"languages": [
|
|
1743
|
+
"typescript",
|
|
1744
|
+
"javascript"
|
|
1745
|
+
],
|
|
1746
|
+
"version": "1.0.0",
|
|
1747
|
+
"status": "migrated",
|
|
1748
|
+
"tags": [
|
|
1749
|
+
"migrated"
|
|
1750
|
+
],
|
|
1751
|
+
"engineMappings": {
|
|
1752
|
+
"eslint": [
|
|
1753
|
+
"custom/one-assert-per-test"
|
|
1754
|
+
]
|
|
1755
|
+
},
|
|
1756
|
+
"strategy": {
|
|
1757
|
+
"preferred": "regex",
|
|
1758
|
+
"fallbacks": [
|
|
1759
|
+
"regex"
|
|
1760
|
+
],
|
|
1761
|
+
"accuracy": {}
|
|
1762
|
+
}
|
|
1763
|
+
},
|
|
1764
|
+
"C075": {
|
|
1765
|
+
"id": "C075",
|
|
1766
|
+
"name": "Rule C075",
|
|
1767
|
+
"description": "Auto-migrated rule C075 from ESLint mapping",
|
|
1768
|
+
"category": "general",
|
|
1769
|
+
"severity": "warning",
|
|
1770
|
+
"languages": [
|
|
1771
|
+
"typescript",
|
|
1772
|
+
"javascript"
|
|
1773
|
+
],
|
|
1774
|
+
"version": "1.0.0",
|
|
1775
|
+
"status": "migrated",
|
|
1776
|
+
"tags": [
|
|
1777
|
+
"migrated"
|
|
1778
|
+
],
|
|
1779
|
+
"engineMappings": {
|
|
1780
|
+
"eslint": [
|
|
1781
|
+
"custom/explicit-function-return-types"
|
|
1782
|
+
]
|
|
1783
|
+
},
|
|
1784
|
+
"strategy": {
|
|
1785
|
+
"preferred": "regex",
|
|
1786
|
+
"fallbacks": [
|
|
1787
|
+
"regex"
|
|
1788
|
+
],
|
|
1789
|
+
"accuracy": {}
|
|
1790
|
+
}
|
|
1791
|
+
},
|
|
1792
|
+
"T002": {
|
|
1793
|
+
"id": "T002",
|
|
1794
|
+
"name": "Rule T002",
|
|
1795
|
+
"description": "Auto-migrated rule T002 from ESLint mapping",
|
|
1796
|
+
"category": "typescript",
|
|
1797
|
+
"severity": "warning",
|
|
1798
|
+
"languages": [
|
|
1799
|
+
"typescript",
|
|
1800
|
+
"javascript"
|
|
1801
|
+
],
|
|
1802
|
+
"version": "1.0.0",
|
|
1803
|
+
"status": "migrated",
|
|
1804
|
+
"tags": [
|
|
1805
|
+
"migrated"
|
|
1806
|
+
],
|
|
1807
|
+
"engineMappings": {
|
|
1808
|
+
"eslint": [
|
|
1809
|
+
"custom/interface-prefix-i"
|
|
1810
|
+
]
|
|
1811
|
+
},
|
|
1812
|
+
"strategy": {
|
|
1813
|
+
"preferred": "regex",
|
|
1814
|
+
"fallbacks": [
|
|
1815
|
+
"regex"
|
|
1816
|
+
],
|
|
1817
|
+
"accuracy": {}
|
|
1818
|
+
}
|
|
1819
|
+
},
|
|
1820
|
+
"T003": {
|
|
1821
|
+
"id": "T003",
|
|
1822
|
+
"name": "Rule T003",
|
|
1823
|
+
"description": "Auto-migrated rule T003 from ESLint mapping",
|
|
1824
|
+
"category": "typescript",
|
|
1825
|
+
"severity": "warning",
|
|
1826
|
+
"languages": [
|
|
1827
|
+
"typescript",
|
|
1828
|
+
"javascript"
|
|
1829
|
+
],
|
|
1830
|
+
"version": "1.0.0",
|
|
1831
|
+
"status": "migrated",
|
|
1832
|
+
"tags": [
|
|
1833
|
+
"migrated"
|
|
1834
|
+
],
|
|
1835
|
+
"engineMappings": {
|
|
1836
|
+
"eslint": [
|
|
1837
|
+
"custom/ts-ignore-reason"
|
|
1838
|
+
]
|
|
1839
|
+
},
|
|
1840
|
+
"strategy": {
|
|
1841
|
+
"preferred": "regex",
|
|
1842
|
+
"fallbacks": [
|
|
1843
|
+
"regex"
|
|
1844
|
+
],
|
|
1845
|
+
"accuracy": {}
|
|
1846
|
+
}
|
|
1847
|
+
},
|
|
1848
|
+
"T004": {
|
|
1849
|
+
"id": "T004",
|
|
1850
|
+
"name": "Rule T004",
|
|
1851
|
+
"description": "Auto-migrated rule T004 from ESLint mapping",
|
|
1852
|
+
"category": "typescript",
|
|
1853
|
+
"severity": "warning",
|
|
1854
|
+
"languages": [
|
|
1855
|
+
"typescript",
|
|
1856
|
+
"javascript"
|
|
1857
|
+
],
|
|
1858
|
+
"version": "1.0.0",
|
|
1859
|
+
"status": "migrated",
|
|
1860
|
+
"tags": [
|
|
1861
|
+
"migrated"
|
|
1862
|
+
],
|
|
1863
|
+
"engineMappings": {
|
|
1864
|
+
"eslint": [
|
|
1865
|
+
"custom/no-empty-type"
|
|
1866
|
+
]
|
|
1867
|
+
},
|
|
1868
|
+
"strategy": {
|
|
1869
|
+
"preferred": "regex",
|
|
1870
|
+
"fallbacks": [
|
|
1871
|
+
"regex"
|
|
1872
|
+
],
|
|
1873
|
+
"accuracy": {}
|
|
1874
|
+
}
|
|
1875
|
+
},
|
|
1876
|
+
"T007": {
|
|
1877
|
+
"id": "T007",
|
|
1878
|
+
"name": "Rule T007",
|
|
1879
|
+
"description": "Auto-migrated rule T007 from ESLint mapping",
|
|
1880
|
+
"category": "typescript",
|
|
1881
|
+
"severity": "warning",
|
|
1882
|
+
"languages": [
|
|
1883
|
+
"typescript",
|
|
1884
|
+
"javascript"
|
|
1885
|
+
],
|
|
1886
|
+
"version": "1.0.0",
|
|
1887
|
+
"status": "migrated",
|
|
1888
|
+
"tags": [
|
|
1889
|
+
"migrated"
|
|
1890
|
+
],
|
|
1891
|
+
"engineMappings": {
|
|
1892
|
+
"eslint": [
|
|
1893
|
+
"custom/no-fn-in-constructor"
|
|
1894
|
+
]
|
|
1895
|
+
},
|
|
1896
|
+
"strategy": {
|
|
1897
|
+
"preferred": "regex",
|
|
1898
|
+
"fallbacks": [
|
|
1899
|
+
"regex"
|
|
1900
|
+
],
|
|
1901
|
+
"accuracy": {}
|
|
1902
|
+
}
|
|
1903
|
+
},
|
|
1904
|
+
"T010": {
|
|
1905
|
+
"id": "T010",
|
|
1906
|
+
"name": "Rule T010",
|
|
1907
|
+
"description": "Auto-migrated rule T010 from ESLint mapping",
|
|
1908
|
+
"category": "typescript",
|
|
1909
|
+
"severity": "warning",
|
|
1910
|
+
"languages": [
|
|
1911
|
+
"typescript",
|
|
1912
|
+
"javascript"
|
|
1913
|
+
],
|
|
1914
|
+
"version": "1.0.0",
|
|
1915
|
+
"status": "migrated",
|
|
1916
|
+
"tags": [
|
|
1917
|
+
"migrated"
|
|
1918
|
+
],
|
|
1919
|
+
"engineMappings": {
|
|
1920
|
+
"eslint": [
|
|
1921
|
+
"custom/no-nested-union-tuple"
|
|
1922
|
+
]
|
|
1923
|
+
},
|
|
1924
|
+
"strategy": {
|
|
1925
|
+
"preferred": "regex",
|
|
1926
|
+
"fallbacks": [
|
|
1927
|
+
"regex"
|
|
1928
|
+
],
|
|
1929
|
+
"accuracy": {}
|
|
1930
|
+
}
|
|
1931
|
+
},
|
|
1932
|
+
"T019": {
|
|
1933
|
+
"id": "T019",
|
|
1934
|
+
"name": "Rule T019",
|
|
1935
|
+
"description": "Auto-migrated rule T019 from ESLint mapping",
|
|
1936
|
+
"category": "typescript",
|
|
1937
|
+
"severity": "warning",
|
|
1938
|
+
"languages": [
|
|
1939
|
+
"typescript",
|
|
1940
|
+
"javascript"
|
|
1941
|
+
],
|
|
1942
|
+
"version": "1.0.0",
|
|
1943
|
+
"status": "migrated",
|
|
1944
|
+
"tags": [
|
|
1945
|
+
"migrated"
|
|
1946
|
+
],
|
|
1947
|
+
"engineMappings": {
|
|
1948
|
+
"eslint": [
|
|
1949
|
+
"custom/no-this-assign"
|
|
1950
|
+
]
|
|
1951
|
+
},
|
|
1952
|
+
"strategy": {
|
|
1953
|
+
"preferred": "regex",
|
|
1954
|
+
"fallbacks": [
|
|
1955
|
+
"regex"
|
|
1956
|
+
],
|
|
1957
|
+
"accuracy": {}
|
|
1958
|
+
}
|
|
1959
|
+
},
|
|
1960
|
+
"T020": {
|
|
1961
|
+
"id": "T020",
|
|
1962
|
+
"name": "Rule T020",
|
|
1963
|
+
"description": "Auto-migrated rule T020 from ESLint mapping",
|
|
1964
|
+
"category": "typescript",
|
|
1965
|
+
"severity": "warning",
|
|
1966
|
+
"languages": [
|
|
1967
|
+
"typescript",
|
|
1968
|
+
"javascript"
|
|
1969
|
+
],
|
|
1970
|
+
"version": "1.0.0",
|
|
1971
|
+
"status": "migrated",
|
|
1972
|
+
"tags": [
|
|
1973
|
+
"migrated"
|
|
1974
|
+
],
|
|
1975
|
+
"engineMappings": {
|
|
1976
|
+
"eslint": [
|
|
1977
|
+
"custom/no-default-multi-export"
|
|
1978
|
+
]
|
|
1979
|
+
},
|
|
1980
|
+
"strategy": {
|
|
1981
|
+
"preferred": "regex",
|
|
1982
|
+
"fallbacks": [
|
|
1983
|
+
"regex"
|
|
1984
|
+
],
|
|
1985
|
+
"accuracy": {}
|
|
1986
|
+
}
|
|
1987
|
+
},
|
|
1988
|
+
"T021": {
|
|
1989
|
+
"id": "T021",
|
|
1990
|
+
"name": "Rule T021",
|
|
1991
|
+
"description": "Auto-migrated rule T021 from ESLint mapping",
|
|
1992
|
+
"category": "typescript",
|
|
1993
|
+
"severity": "warning",
|
|
1994
|
+
"languages": [
|
|
1995
|
+
"typescript",
|
|
1996
|
+
"javascript"
|
|
1997
|
+
],
|
|
1998
|
+
"version": "1.0.0",
|
|
1999
|
+
"status": "migrated",
|
|
2000
|
+
"tags": [
|
|
2001
|
+
"migrated"
|
|
2002
|
+
],
|
|
2003
|
+
"engineMappings": {
|
|
2004
|
+
"eslint": [
|
|
2005
|
+
"custom/limit-nested-generics"
|
|
2006
|
+
]
|
|
2007
|
+
},
|
|
2008
|
+
"strategy": {
|
|
2009
|
+
"preferred": "regex",
|
|
2010
|
+
"fallbacks": [
|
|
2011
|
+
"regex"
|
|
2012
|
+
],
|
|
2013
|
+
"accuracy": {}
|
|
2014
|
+
}
|
|
2015
|
+
},
|
|
2016
|
+
"R001": {
|
|
2017
|
+
"id": "R001",
|
|
2018
|
+
"name": "Rule R001",
|
|
2019
|
+
"description": "Auto-migrated rule R001 from ESLint mapping",
|
|
2020
|
+
"category": "react",
|
|
2021
|
+
"severity": "warning",
|
|
2022
|
+
"languages": [
|
|
2023
|
+
"typescript",
|
|
2024
|
+
"javascript"
|
|
2025
|
+
],
|
|
2026
|
+
"version": "1.0.0",
|
|
2027
|
+
"status": "migrated",
|
|
2028
|
+
"tags": [
|
|
2029
|
+
"migrated"
|
|
2030
|
+
],
|
|
2031
|
+
"engineMappings": {
|
|
2032
|
+
"eslint": [
|
|
2033
|
+
"react/no-this-in-sfc",
|
|
2034
|
+
"no-param-reassign",
|
|
2035
|
+
"react/function-component-definition",
|
|
2036
|
+
"react/forbid-component-props"
|
|
2037
|
+
]
|
|
2038
|
+
},
|
|
2039
|
+
"strategy": {
|
|
2040
|
+
"preferred": "regex",
|
|
2041
|
+
"fallbacks": [
|
|
2042
|
+
"regex"
|
|
2043
|
+
],
|
|
2044
|
+
"accuracy": {}
|
|
2045
|
+
}
|
|
2046
|
+
},
|
|
2047
|
+
"R002": {
|
|
2048
|
+
"id": "R002",
|
|
2049
|
+
"name": "Rule R002",
|
|
2050
|
+
"description": "Auto-migrated rule R002 from ESLint mapping",
|
|
2051
|
+
"category": "react",
|
|
2052
|
+
"severity": "warning",
|
|
2053
|
+
"languages": [
|
|
2054
|
+
"typescript",
|
|
2055
|
+
"javascript"
|
|
2056
|
+
],
|
|
2057
|
+
"version": "1.0.0",
|
|
2058
|
+
"status": "migrated",
|
|
2059
|
+
"tags": [
|
|
2060
|
+
"migrated"
|
|
2061
|
+
],
|
|
2062
|
+
"engineMappings": {
|
|
2063
|
+
"eslint": [
|
|
2064
|
+
"react-hooks/rules-of-hooks",
|
|
2065
|
+
"react-hooks/exhaustive-deps",
|
|
2066
|
+
"react/no-did-mount-set-state",
|
|
2067
|
+
"react/no-did-update-set-state"
|
|
2068
|
+
]
|
|
2069
|
+
},
|
|
2070
|
+
"strategy": {
|
|
2071
|
+
"preferred": "regex",
|
|
2072
|
+
"fallbacks": [
|
|
2073
|
+
"regex"
|
|
2074
|
+
],
|
|
2075
|
+
"accuracy": {}
|
|
2076
|
+
}
|
|
2077
|
+
},
|
|
2078
|
+
"R003": {
|
|
2079
|
+
"id": "R003",
|
|
2080
|
+
"name": "Rule R003",
|
|
2081
|
+
"description": "Auto-migrated rule R003 from ESLint mapping",
|
|
2082
|
+
"category": "react",
|
|
2083
|
+
"severity": "warning",
|
|
2084
|
+
"languages": [
|
|
2085
|
+
"typescript",
|
|
2086
|
+
"javascript"
|
|
2087
|
+
],
|
|
2088
|
+
"version": "1.0.0",
|
|
2089
|
+
"status": "migrated",
|
|
2090
|
+
"tags": [
|
|
2091
|
+
"migrated"
|
|
2092
|
+
],
|
|
2093
|
+
"engineMappings": {
|
|
2094
|
+
"eslint": [
|
|
2095
|
+
"react/no-direct-mutation-state",
|
|
2096
|
+
"react/jsx-no-constructed-context-values",
|
|
2097
|
+
"react/forbid-dom-props"
|
|
2098
|
+
]
|
|
2099
|
+
},
|
|
2100
|
+
"strategy": {
|
|
2101
|
+
"preferred": "regex",
|
|
2102
|
+
"fallbacks": [
|
|
2103
|
+
"regex"
|
|
2104
|
+
],
|
|
2105
|
+
"accuracy": {}
|
|
2106
|
+
}
|
|
2107
|
+
},
|
|
2108
|
+
"R004": {
|
|
2109
|
+
"id": "R004",
|
|
2110
|
+
"name": "Rule R004",
|
|
2111
|
+
"description": "Auto-migrated rule R004 from ESLint mapping",
|
|
2112
|
+
"category": "react",
|
|
2113
|
+
"severity": "warning",
|
|
2114
|
+
"languages": [
|
|
2115
|
+
"typescript",
|
|
2116
|
+
"javascript"
|
|
2117
|
+
],
|
|
2118
|
+
"version": "1.0.0",
|
|
2119
|
+
"status": "migrated",
|
|
2120
|
+
"tags": [
|
|
2121
|
+
"migrated"
|
|
2122
|
+
],
|
|
2123
|
+
"engineMappings": {
|
|
2124
|
+
"eslint": [
|
|
2125
|
+
"no-param-reassign",
|
|
2126
|
+
"react/forbid-foreign-prop-types"
|
|
2127
|
+
]
|
|
2128
|
+
},
|
|
2129
|
+
"strategy": {
|
|
2130
|
+
"preferred": "regex",
|
|
2131
|
+
"fallbacks": [
|
|
2132
|
+
"regex"
|
|
2133
|
+
],
|
|
2134
|
+
"accuracy": {}
|
|
2135
|
+
}
|
|
2136
|
+
},
|
|
2137
|
+
"R005": {
|
|
2138
|
+
"id": "R005",
|
|
2139
|
+
"name": "Rule R005",
|
|
2140
|
+
"description": "Auto-migrated rule R005 from ESLint mapping",
|
|
2141
|
+
"category": "react",
|
|
2142
|
+
"severity": "warning",
|
|
2143
|
+
"languages": [
|
|
2144
|
+
"typescript",
|
|
2145
|
+
"javascript"
|
|
2146
|
+
],
|
|
2147
|
+
"version": "1.0.0",
|
|
2148
|
+
"status": "migrated",
|
|
2149
|
+
"tags": [
|
|
2150
|
+
"migrated"
|
|
2151
|
+
],
|
|
2152
|
+
"engineMappings": {
|
|
2153
|
+
"eslint": [
|
|
2154
|
+
"react/jsx-no-bind"
|
|
2155
|
+
]
|
|
2156
|
+
},
|
|
2157
|
+
"strategy": {
|
|
2158
|
+
"preferred": "regex",
|
|
2159
|
+
"fallbacks": [
|
|
2160
|
+
"regex"
|
|
2161
|
+
],
|
|
2162
|
+
"accuracy": {}
|
|
2163
|
+
}
|
|
2164
|
+
},
|
|
2165
|
+
"R006": {
|
|
2166
|
+
"id": "R006",
|
|
2167
|
+
"name": "Rule R006",
|
|
2168
|
+
"description": "Auto-migrated rule R006 from ESLint mapping",
|
|
2169
|
+
"category": "react",
|
|
2170
|
+
"severity": "warning",
|
|
2171
|
+
"languages": [
|
|
2172
|
+
"typescript",
|
|
2173
|
+
"javascript"
|
|
2174
|
+
],
|
|
2175
|
+
"version": "1.0.0",
|
|
2176
|
+
"status": "migrated",
|
|
2177
|
+
"tags": [
|
|
2178
|
+
"migrated"
|
|
2179
|
+
],
|
|
2180
|
+
"engineMappings": {
|
|
2181
|
+
"eslint": [
|
|
2182
|
+
"react/jsx-pascal-case",
|
|
2183
|
+
"react/jsx-uses-react",
|
|
2184
|
+
"react/jsx-uses-vars"
|
|
2185
|
+
]
|
|
2186
|
+
},
|
|
2187
|
+
"strategy": {
|
|
2188
|
+
"preferred": "regex",
|
|
2189
|
+
"fallbacks": [
|
|
2190
|
+
"regex"
|
|
2191
|
+
],
|
|
2192
|
+
"accuracy": {}
|
|
2193
|
+
}
|
|
2194
|
+
},
|
|
2195
|
+
"R007": {
|
|
2196
|
+
"id": "R007",
|
|
2197
|
+
"name": "Rule R007",
|
|
2198
|
+
"description": "Auto-migrated rule R007 from ESLint mapping",
|
|
2199
|
+
"category": "react",
|
|
2200
|
+
"severity": "warning",
|
|
2201
|
+
"languages": [
|
|
2202
|
+
"typescript",
|
|
2203
|
+
"javascript"
|
|
2204
|
+
],
|
|
2205
|
+
"version": "1.0.0",
|
|
2206
|
+
"status": "migrated",
|
|
2207
|
+
"tags": [
|
|
2208
|
+
"migrated"
|
|
2209
|
+
],
|
|
2210
|
+
"engineMappings": {
|
|
2211
|
+
"eslint": [
|
|
2212
|
+
"react-hooks/rules-of-hooks"
|
|
2213
|
+
]
|
|
2214
|
+
},
|
|
2215
|
+
"strategy": {
|
|
2216
|
+
"preferred": "regex",
|
|
2217
|
+
"fallbacks": [
|
|
2218
|
+
"regex"
|
|
2219
|
+
],
|
|
2220
|
+
"accuracy": {}
|
|
2221
|
+
}
|
|
2222
|
+
},
|
|
2223
|
+
"R008": {
|
|
2224
|
+
"id": "R008",
|
|
2225
|
+
"name": "Rule R008",
|
|
2226
|
+
"description": "Auto-migrated rule R008 from ESLint mapping",
|
|
2227
|
+
"category": "react",
|
|
2228
|
+
"severity": "warning",
|
|
2229
|
+
"languages": [
|
|
2230
|
+
"typescript",
|
|
2231
|
+
"javascript"
|
|
2232
|
+
],
|
|
2233
|
+
"version": "1.0.0",
|
|
2234
|
+
"status": "migrated",
|
|
2235
|
+
"tags": [
|
|
2236
|
+
"migrated"
|
|
2237
|
+
],
|
|
2238
|
+
"engineMappings": {
|
|
2239
|
+
"eslint": [
|
|
2240
|
+
"react-hooks/rules-of-hooks"
|
|
2241
|
+
]
|
|
2242
|
+
},
|
|
2243
|
+
"strategy": {
|
|
2244
|
+
"preferred": "regex",
|
|
2245
|
+
"fallbacks": [
|
|
2246
|
+
"regex"
|
|
2247
|
+
],
|
|
2248
|
+
"accuracy": {}
|
|
2249
|
+
}
|
|
2250
|
+
},
|
|
2251
|
+
"R009": {
|
|
2252
|
+
"id": "R009",
|
|
2253
|
+
"name": "Rule R009",
|
|
2254
|
+
"description": "Auto-migrated rule R009 from ESLint mapping",
|
|
2255
|
+
"category": "react",
|
|
2256
|
+
"severity": "warning",
|
|
2257
|
+
"languages": [
|
|
2258
|
+
"typescript",
|
|
2259
|
+
"javascript"
|
|
2260
|
+
],
|
|
2261
|
+
"version": "1.0.0",
|
|
2262
|
+
"status": "migrated",
|
|
2263
|
+
"tags": [
|
|
2264
|
+
"migrated"
|
|
2265
|
+
],
|
|
2266
|
+
"engineMappings": {
|
|
2267
|
+
"eslint": [
|
|
2268
|
+
"react-hooks/rules-of-hooks"
|
|
2269
|
+
]
|
|
2270
|
+
},
|
|
2271
|
+
"strategy": {
|
|
2272
|
+
"preferred": "regex",
|
|
2273
|
+
"fallbacks": [
|
|
2274
|
+
"regex"
|
|
2275
|
+
],
|
|
2276
|
+
"accuracy": {}
|
|
2277
|
+
}
|
|
2278
|
+
}
|
|
2279
|
+
},
|
|
2280
|
+
"categories": {
|
|
2281
|
+
"quality": {
|
|
2282
|
+
"name": "Code Quality",
|
|
2283
|
+
"description": "Rules for code quality improvement",
|
|
2284
|
+
"rules": [
|
|
2285
|
+
"C002",
|
|
2286
|
+
"C003",
|
|
2287
|
+
"C006",
|
|
2288
|
+
"C010",
|
|
2289
|
+
"C013",
|
|
2290
|
+
"C014",
|
|
2291
|
+
"C017",
|
|
2292
|
+
"C018",
|
|
2293
|
+
"C023",
|
|
2294
|
+
"C029",
|
|
2295
|
+
"C030",
|
|
2296
|
+
"C035",
|
|
2297
|
+
"C041",
|
|
2298
|
+
"C042",
|
|
2299
|
+
"C043",
|
|
2300
|
+
"C047",
|
|
2301
|
+
"C072",
|
|
2302
|
+
"C075",
|
|
2303
|
+
"C076",
|
|
2304
|
+
"T002",
|
|
2305
|
+
"T003",
|
|
2306
|
+
"T004",
|
|
2307
|
+
"T007",
|
|
2308
|
+
"T010",
|
|
2309
|
+
"T019",
|
|
2310
|
+
"T020",
|
|
2311
|
+
"T021",
|
|
2312
|
+
"R001",
|
|
2313
|
+
"R002",
|
|
2314
|
+
"R003",
|
|
2315
|
+
"R004",
|
|
2316
|
+
"R005",
|
|
2317
|
+
"R006"
|
|
2318
|
+
],
|
|
2319
|
+
"severity": "warning"
|
|
2320
|
+
},
|
|
2321
|
+
"security": {
|
|
2322
|
+
"name": "Security",
|
|
2323
|
+
"description": "Rules for security best practices",
|
|
2324
|
+
"rules": [
|
|
2325
|
+
"S001",
|
|
2326
|
+
"S002",
|
|
2327
|
+
"S003",
|
|
2328
|
+
"S005",
|
|
2329
|
+
"S006",
|
|
2330
|
+
"S007",
|
|
2331
|
+
"S008",
|
|
2332
|
+
"S009",
|
|
2333
|
+
"S010",
|
|
2334
|
+
"S011",
|
|
2335
|
+
"S012",
|
|
2336
|
+
"S013",
|
|
2337
|
+
"S014",
|
|
2338
|
+
"S015",
|
|
2339
|
+
"S016",
|
|
2340
|
+
"S017",
|
|
2341
|
+
"S018",
|
|
2342
|
+
"S019",
|
|
2343
|
+
"S020",
|
|
2344
|
+
"S022",
|
|
2345
|
+
"S023",
|
|
2346
|
+
"S025",
|
|
2347
|
+
"S026",
|
|
2348
|
+
"S027",
|
|
2349
|
+
"S029",
|
|
2350
|
+
"S030",
|
|
2351
|
+
"S033",
|
|
2352
|
+
"S034",
|
|
2353
|
+
"S035",
|
|
2354
|
+
"S036",
|
|
2355
|
+
"S037",
|
|
2356
|
+
"S038",
|
|
2357
|
+
"S039",
|
|
2358
|
+
"S041",
|
|
2359
|
+
"S042",
|
|
2360
|
+
"S043",
|
|
2361
|
+
"S044",
|
|
2362
|
+
"S045",
|
|
2363
|
+
"S046",
|
|
2364
|
+
"S047",
|
|
2365
|
+
"S048",
|
|
2366
|
+
"S050",
|
|
2367
|
+
"S052",
|
|
2368
|
+
"S054",
|
|
2369
|
+
"S055",
|
|
2370
|
+
"S057",
|
|
2371
|
+
"S058"
|
|
2372
|
+
],
|
|
2373
|
+
"severity": "error"
|
|
2374
|
+
},
|
|
2375
|
+
"logging": {
|
|
2376
|
+
"name": "Logging Standards",
|
|
2377
|
+
"description": "Rules related to logging practices",
|
|
2378
|
+
"rules": [
|
|
2379
|
+
"C019",
|
|
2380
|
+
"S057"
|
|
2381
|
+
],
|
|
2382
|
+
"severity": "warning"
|
|
2383
|
+
},
|
|
2384
|
+
"naming": {
|
|
2385
|
+
"name": "Naming Conventions",
|
|
2386
|
+
"description": "Rules for consistent naming patterns",
|
|
2387
|
+
"rules": [
|
|
2388
|
+
"C006"
|
|
2389
|
+
],
|
|
2390
|
+
"severity": "warning"
|
|
2391
|
+
},
|
|
2392
|
+
"design": {
|
|
2393
|
+
"name": "Design Principles",
|
|
2394
|
+
"description": "Rules for software design best practices",
|
|
2395
|
+
"rules": [
|
|
2396
|
+
"C006"
|
|
2397
|
+
],
|
|
2398
|
+
"severity": "warning"
|
|
2399
|
+
},
|
|
2400
|
+
"validation": {
|
|
2401
|
+
"name": "Data Validation",
|
|
2402
|
+
"description": "Rules for proper data validation practices",
|
|
2403
|
+
"rules": [
|
|
2404
|
+
"C031",
|
|
2405
|
+
"S018",
|
|
2406
|
+
"S025",
|
|
2407
|
+
"S026"
|
|
2408
|
+
],
|
|
2409
|
+
"severity": "error"
|
|
2410
|
+
},
|
|
2411
|
+
"architecture": {
|
|
2412
|
+
"name": "Architecture Guidelines",
|
|
2413
|
+
"description": "Rules for system architecture best practices",
|
|
2414
|
+
"rules": [
|
|
2415
|
+
"C014",
|
|
2416
|
+
"C033"
|
|
2417
|
+
],
|
|
2418
|
+
"severity": "error"
|
|
2419
|
+
}
|
|
2420
|
+
},
|
|
2421
|
+
"presets": {
|
|
2422
|
+
"recommended": {
|
|
2423
|
+
"name": "Recommended Rules",
|
|
2424
|
+
"description": "Essential rules for code quality",
|
|
2425
|
+
"rules": {
|
|
2426
|
+
"C019": "warning",
|
|
2427
|
+
"C006": "warning",
|
|
2428
|
+
"C029": "error",
|
|
2429
|
+
"C031": "error"
|
|
2430
|
+
}
|
|
2431
|
+
},
|
|
2432
|
+
"strict": {
|
|
2433
|
+
"name": "Strict Rules",
|
|
2434
|
+
"description": "All rules with maximum enforcement",
|
|
2435
|
+
"rules": {
|
|
2436
|
+
"C019": "error",
|
|
2437
|
+
"C006": "error",
|
|
2438
|
+
"C029": "error",
|
|
2439
|
+
"C031": "error"
|
|
2440
|
+
}
|
|
2441
|
+
},
|
|
2442
|
+
"beginner": {
|
|
2443
|
+
"name": "Beginner Friendly",
|
|
2444
|
+
"description": "Basic rules for learning",
|
|
2445
|
+
"rules": {
|
|
2446
|
+
"C019": "info",
|
|
2447
|
+
"C006": "warning",
|
|
2448
|
+
"C029": "warning"
|
|
2449
|
+
}
|
|
2450
|
+
}
|
|
2451
|
+
},
|
|
2452
|
+
"languages": {
|
|
2453
|
+
"typescript": {
|
|
2454
|
+
"extensions": [
|
|
2455
|
+
".ts",
|
|
2456
|
+
".tsx"
|
|
2457
|
+
],
|
|
2458
|
+
"analyzer": "ast",
|
|
2459
|
+
"parser": "@typescript-eslint/parser"
|
|
2460
|
+
},
|
|
2461
|
+
"javascript": {
|
|
2462
|
+
"extensions": [
|
|
2463
|
+
".js",
|
|
2464
|
+
".jsx"
|
|
2465
|
+
],
|
|
2466
|
+
"analyzer": "ast",
|
|
2467
|
+
"parser": "@typescript-eslint/parser"
|
|
2468
|
+
},
|
|
2469
|
+
"dart": {
|
|
2470
|
+
"extensions": [
|
|
2471
|
+
".dart"
|
|
2472
|
+
],
|
|
2473
|
+
"analyzer": "pattern",
|
|
2474
|
+
"parser": "regex"
|
|
2475
|
+
},
|
|
2476
|
+
"kotlin": {
|
|
2477
|
+
"extensions": [
|
|
2478
|
+
".kt",
|
|
2479
|
+
".kts"
|
|
2480
|
+
],
|
|
2481
|
+
"analyzer": "ast",
|
|
2482
|
+
"parser": "kotlin-parser"
|
|
2483
|
+
}
|
|
2484
|
+
},
|
|
2485
|
+
"metadata": {
|
|
2486
|
+
"version": "1.1.6",
|
|
2487
|
+
"lastUpdated": "2025-07-24",
|
|
2488
|
+
"totalRules": 44,
|
|
2489
|
+
"qualityRules": 33,
|
|
2490
|
+
"securityRules": 47,
|
|
2491
|
+
"stableRules": 43,
|
|
2492
|
+
"experimentalRules": 1,
|
|
2493
|
+
"supportedLanguages": 4,
|
|
2494
|
+
"features": [
|
|
2495
|
+
"Security rules integration",
|
|
2496
|
+
"Category-based rule filtering",
|
|
2497
|
+
"Dynamic rule configuration",
|
|
2498
|
+
"ESLint 9.x integration",
|
|
2499
|
+
"React rules integration",
|
|
2500
|
+
"Memory leak fixes"
|
|
2501
|
+
]
|
|
2502
|
+
}
|
|
2503
|
+
}
|