@codacy/tools-unsupported-tools 0.10.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/LICENSE +21 -0
- package/README.md +111 -0
- package/dist/index.d.ts +31 -0
- package/dist/index.js +261 -0
- package/dist/patterns/CodeNarc.json +4890 -0
- package/dist/patterns/Credo.json +1276 -0
- package/dist/patterns/PHPCS.json +10230 -0
- package/dist/patterns/SonarCSharp.json +4328 -0
- package/dist/patterns/SonarVisualBasic.json +1462 -0
- package/dist/patterns/TSQLLint.json +272 -0
- package/dist/patterns/ameba.json +686 -0
- package/dist/patterns/codacy-scalameta-pro.json +856 -0
- package/dist/patterns/coffeelint.json +479 -0
- package/dist/patterns/dartanalyzer.json +10400 -0
- package/dist/patterns/phpmd.json +573 -0
- package/dist/patterns/psscriptanalyzer.json +624 -0
- package/package.json +37 -0
|
@@ -0,0 +1,856 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"id": "ClassNamesChecker",
|
|
4
|
+
"category": "CodeStyle",
|
|
5
|
+
"severityLevel": "Info",
|
|
6
|
+
"title": "Enforce Class Naming Convention",
|
|
7
|
+
"enabled": false,
|
|
8
|
+
"languages": ["Scala"],
|
|
9
|
+
"parameters": [
|
|
10
|
+
{
|
|
11
|
+
"name": "regex",
|
|
12
|
+
"default": "^[A-Z][A-Za-z0-9]*$",
|
|
13
|
+
"description": "The regex for name validation"
|
|
14
|
+
}
|
|
15
|
+
]
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"id": "Custom_Scala_ActiveNames",
|
|
19
|
+
"category": "BestPractice",
|
|
20
|
+
"severityLevel": "Info",
|
|
21
|
+
"title": "Enforce Active Names for Side-Effect Operations",
|
|
22
|
+
"enabled": false,
|
|
23
|
+
"languages": ["Scala"],
|
|
24
|
+
"parameters": []
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"id": "Custom_Scala_BadTagPresenceCheck",
|
|
28
|
+
"category": "BestPractice",
|
|
29
|
+
"severityLevel": "Warning",
|
|
30
|
+
"title": "Prohibit TODO/FIXME Tags in Comments",
|
|
31
|
+
"enabled": false,
|
|
32
|
+
"languages": ["Scala"],
|
|
33
|
+
"parameters": [
|
|
34
|
+
{
|
|
35
|
+
"name": "caseSensitive",
|
|
36
|
+
"default": "false",
|
|
37
|
+
"description": "should the search for tags respect case sensitivity"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"name": "fixmeTags",
|
|
41
|
+
"default": "[\"FixMe\",\"ToDo\"]",
|
|
42
|
+
"description": "a set of strings to check the comments for"
|
|
43
|
+
}
|
|
44
|
+
]
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"id": "Custom_Scala_CallByNameAsLastArguments",
|
|
48
|
+
"category": "BestPractice",
|
|
49
|
+
"severityLevel": "Warning",
|
|
50
|
+
"title": "Enforce call-by-name arguments as last parameters",
|
|
51
|
+
"enabled": true,
|
|
52
|
+
"languages": ["Scala"],
|
|
53
|
+
"parameters": []
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"id": "Custom_Scala_CommandInjection",
|
|
57
|
+
"category": "Security",
|
|
58
|
+
"severityLevel": "Error",
|
|
59
|
+
"title": "Prevent Command Injection",
|
|
60
|
+
"enabled": false,
|
|
61
|
+
"languages": ["Scala"],
|
|
62
|
+
"parameters": []
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"id": "Custom_Scala_DefaultPatternMatching",
|
|
66
|
+
"category": "ErrorProne",
|
|
67
|
+
"severityLevel": "High",
|
|
68
|
+
"title": "Prohibit Pattern Matching Without Default Case",
|
|
69
|
+
"enabled": false,
|
|
70
|
+
"languages": ["Scala"],
|
|
71
|
+
"parameters": []
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"id": "Custom_Scala_DESInsecure",
|
|
75
|
+
"category": "Security",
|
|
76
|
+
"severityLevel": "Error",
|
|
77
|
+
"title": "Prohibit insecure ciphers",
|
|
78
|
+
"enabled": true,
|
|
79
|
+
"languages": ["Scala"],
|
|
80
|
+
"parameters": []
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"id": "Custom_Scala_DirectPromiseCreation",
|
|
84
|
+
"category": "BestPractice",
|
|
85
|
+
"severityLevel": "Warning",
|
|
86
|
+
"title": "Avoid Direct Promise Creation",
|
|
87
|
+
"enabled": true,
|
|
88
|
+
"languages": ["Scala"],
|
|
89
|
+
"parameters": []
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"id": "Custom_Scala_DuplicatedCase",
|
|
93
|
+
"category": "ErrorProne",
|
|
94
|
+
"severityLevel": "High",
|
|
95
|
+
"title": "Prohibit Duplicate Case Patterns",
|
|
96
|
+
"enabled": false,
|
|
97
|
+
"languages": ["Scala"],
|
|
98
|
+
"parameters": []
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"id": "Custom_Scala_DuplicatedIfElseIf",
|
|
102
|
+
"category": "CodeStyle",
|
|
103
|
+
"severityLevel": "Info",
|
|
104
|
+
"title": "Prohibit Duplicate Conditions in if-else if Statements",
|
|
105
|
+
"enabled": false,
|
|
106
|
+
"languages": ["Scala"],
|
|
107
|
+
"parameters": []
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"id": "Custom_Scala_ElseIf",
|
|
111
|
+
"category": "CodeStyle",
|
|
112
|
+
"severityLevel": "Info",
|
|
113
|
+
"title": "Enforce pattern matching over else-if nesting",
|
|
114
|
+
"enabled": true,
|
|
115
|
+
"languages": ["Scala"],
|
|
116
|
+
"parameters": []
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"id": "Custom_Scala_EmptyForBlock",
|
|
120
|
+
"category": "CodeStyle",
|
|
121
|
+
"severityLevel": "Info",
|
|
122
|
+
"title": "Avoid Using Empty Blocks in For Statements",
|
|
123
|
+
"enabled": false,
|
|
124
|
+
"languages": ["Scala"],
|
|
125
|
+
"parameters": []
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"id": "Custom_Scala_EmptyIfBlock",
|
|
129
|
+
"category": "CodeStyle",
|
|
130
|
+
"severityLevel": "Info",
|
|
131
|
+
"title": "Avoid Using Empty Blocks in If Statements",
|
|
132
|
+
"enabled": false,
|
|
133
|
+
"languages": ["Scala"],
|
|
134
|
+
"parameters": []
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
"id": "Custom_Scala_EmptyMethodBlock",
|
|
138
|
+
"category": "BestPractice",
|
|
139
|
+
"severityLevel": "Info",
|
|
140
|
+
"title": "Avoid Using Empty Methods",
|
|
141
|
+
"enabled": false,
|
|
142
|
+
"languages": ["Scala"],
|
|
143
|
+
"parameters": []
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
"id": "Custom_Scala_EmptyTryBlock",
|
|
147
|
+
"category": "BestPractice",
|
|
148
|
+
"severityLevel": "Warning",
|
|
149
|
+
"title": "Avoid Using Empty Try Blocks",
|
|
150
|
+
"enabled": false,
|
|
151
|
+
"languages": ["Scala"],
|
|
152
|
+
"parameters": []
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
"id": "Custom_Scala_EmptyWhileBlock",
|
|
156
|
+
"category": "CodeStyle",
|
|
157
|
+
"severityLevel": "Info",
|
|
158
|
+
"title": "Avoid using empty blocks in while statements",
|
|
159
|
+
"enabled": false,
|
|
160
|
+
"languages": ["Scala"],
|
|
161
|
+
"parameters": []
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
"id": "Custom_Scala_EnforceMinimumVisibility",
|
|
165
|
+
"category": "BestPractice",
|
|
166
|
+
"severityLevel": "Warning",
|
|
167
|
+
"title": "Enforce Minimum Visibility in Module Values",
|
|
168
|
+
"enabled": false,
|
|
169
|
+
"languages": ["Scala"],
|
|
170
|
+
"parameters": []
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
"id": "Custom_Scala_ExplicitMutableNamespace",
|
|
174
|
+
"category": "BestPractice",
|
|
175
|
+
"severityLevel": "Info",
|
|
176
|
+
"title": "Enforce Explicit Use of Mutable Namespace",
|
|
177
|
+
"enabled": false,
|
|
178
|
+
"languages": ["Scala"],
|
|
179
|
+
"parameters": []
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
"id": "Custom_Scala_ExtendsError",
|
|
183
|
+
"category": "ErrorProne",
|
|
184
|
+
"severityLevel": "High",
|
|
185
|
+
"title": "Avoid Extending java.lang.Error",
|
|
186
|
+
"enabled": false,
|
|
187
|
+
"languages": ["Scala"],
|
|
188
|
+
"parameters": []
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
"id": "Custom_Scala_FieldNamesChecker",
|
|
192
|
+
"category": "CodeStyle",
|
|
193
|
+
"severityLevel": "Info",
|
|
194
|
+
"title": "Enforce Consistent Field Names",
|
|
195
|
+
"enabled": true,
|
|
196
|
+
"languages": ["Scala"],
|
|
197
|
+
"parameters": [
|
|
198
|
+
{
|
|
199
|
+
"name": "allowConstants",
|
|
200
|
+
"default": "true",
|
|
201
|
+
"description": "Use a different regular expression for object constants"
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
"name": "constantsRegex",
|
|
205
|
+
"default": "^[A-Za-z][A-Za-z0-9]*$",
|
|
206
|
+
"description": "Regular expression to use in object constants (if allowConstants is set to true)"
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
"name": "includeEnums",
|
|
210
|
+
"default": "false",
|
|
211
|
+
"description": "Enforce naming convention for Enumeration Values"
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
"name": "regex",
|
|
215
|
+
"default": "^[a-z][A-Za-z0-9]*$",
|
|
216
|
+
"description": "Regular expression"
|
|
217
|
+
}
|
|
218
|
+
]
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
"id": "Custom_Scala_GetCalls",
|
|
222
|
+
"category": "ErrorProne",
|
|
223
|
+
"severityLevel": "High",
|
|
224
|
+
"title": "Avoid calling get on Option and Either",
|
|
225
|
+
"enabled": false,
|
|
226
|
+
"languages": ["Scala"],
|
|
227
|
+
"parameters": []
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
"id": "Custom_Scala_GetInMethodName",
|
|
231
|
+
"category": "BestPractice",
|
|
232
|
+
"severityLevel": "Info",
|
|
233
|
+
"title": "Avoid Prefixing Getters with 'get'",
|
|
234
|
+
"enabled": false,
|
|
235
|
+
"languages": ["Scala"],
|
|
236
|
+
"parameters": []
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
"id": "Custom_Scala_GroupImports",
|
|
240
|
+
"category": "CodeStyle",
|
|
241
|
+
"severityLevel": "Info",
|
|
242
|
+
"title": "Enforce Grouping Imports",
|
|
243
|
+
"enabled": true,
|
|
244
|
+
"languages": ["Scala"],
|
|
245
|
+
"parameters": []
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
"id": "Custom_Scala_HardCodedKey",
|
|
249
|
+
"category": "Security",
|
|
250
|
+
"severityLevel": "Error",
|
|
251
|
+
"title": "Prohibit hard coded cryptographic keys",
|
|
252
|
+
"enabled": true,
|
|
253
|
+
"languages": ["Scala"],
|
|
254
|
+
"parameters": []
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
"id": "Custom_Scala_HardCodedPassword",
|
|
258
|
+
"category": "Security",
|
|
259
|
+
"severityLevel": "Error",
|
|
260
|
+
"title": "Prohibit Hard Coded Passwords",
|
|
261
|
+
"enabled": true,
|
|
262
|
+
"languages": ["Scala"],
|
|
263
|
+
"parameters": []
|
|
264
|
+
},
|
|
265
|
+
{
|
|
266
|
+
"id": "Custom_Scala_HttpOnlyCookie",
|
|
267
|
+
"category": "Security",
|
|
268
|
+
"severityLevel": "High",
|
|
269
|
+
"title": "Prohibit creating cookies without HttpOnly set",
|
|
270
|
+
"enabled": true,
|
|
271
|
+
"languages": ["Scala"],
|
|
272
|
+
"parameters": []
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
"id": "Custom_Scala_ImportsAtBeginningOfPackage",
|
|
276
|
+
"category": "CodeStyle",
|
|
277
|
+
"severityLevel": "Info",
|
|
278
|
+
"title": "Enforce Imports at the Top of the Package",
|
|
279
|
+
"enabled": true,
|
|
280
|
+
"languages": ["Scala"],
|
|
281
|
+
"parameters": []
|
|
282
|
+
},
|
|
283
|
+
{
|
|
284
|
+
"id": "Custom_Scala_ImportsSortedAlphabetically",
|
|
285
|
+
"category": "CodeStyle",
|
|
286
|
+
"severityLevel": "Info",
|
|
287
|
+
"title": "Enforce sorting imports alphabetically",
|
|
288
|
+
"enabled": false,
|
|
289
|
+
"languages": ["Scala"],
|
|
290
|
+
"parameters": [
|
|
291
|
+
{
|
|
292
|
+
"name": "caseSensitive",
|
|
293
|
+
"default": "false",
|
|
294
|
+
"description": "Most IDEs do respect case sensitivity when sorting imports."
|
|
295
|
+
}
|
|
296
|
+
]
|
|
297
|
+
},
|
|
298
|
+
{
|
|
299
|
+
"id": "Custom_Scala_IncompletePatternMatching",
|
|
300
|
+
"category": "ErrorProne",
|
|
301
|
+
"severityLevel": "High",
|
|
302
|
+
"title": "Prohibit Incomplete Pattern Matching",
|
|
303
|
+
"enabled": true,
|
|
304
|
+
"languages": ["Scala"],
|
|
305
|
+
"parameters": []
|
|
306
|
+
},
|
|
307
|
+
{
|
|
308
|
+
"id": "Custom_Scala_IndexOfPositive",
|
|
309
|
+
"category": "ErrorProne",
|
|
310
|
+
"severityLevel": "Warning",
|
|
311
|
+
"title": "Avoid Checking indexOf for Positive Values",
|
|
312
|
+
"enabled": false,
|
|
313
|
+
"languages": ["Scala"],
|
|
314
|
+
"parameters": []
|
|
315
|
+
},
|
|
316
|
+
{
|
|
317
|
+
"id": "Custom_Scala_IndexOfStartPosition",
|
|
318
|
+
"category": "Comprehensibility",
|
|
319
|
+
"severityLevel": "Info",
|
|
320
|
+
"title": "Use indexOf with start position argument",
|
|
321
|
+
"enabled": false,
|
|
322
|
+
"languages": ["Scala"],
|
|
323
|
+
"parameters": []
|
|
324
|
+
},
|
|
325
|
+
{
|
|
326
|
+
"id": "Custom_Scala_InsecureCookie",
|
|
327
|
+
"category": "Security",
|
|
328
|
+
"severityLevel": "High",
|
|
329
|
+
"title": "Prohibit creating insecure cookies",
|
|
330
|
+
"enabled": true,
|
|
331
|
+
"languages": ["Scala"],
|
|
332
|
+
"parameters": []
|
|
333
|
+
},
|
|
334
|
+
{
|
|
335
|
+
"id": "Custom_Scala_InsufficientKeySizeBlowfishDetector",
|
|
336
|
+
"category": "Security",
|
|
337
|
+
"severityLevel": "High",
|
|
338
|
+
"title": "Prohibit Blowfish Usage with Short Key",
|
|
339
|
+
"enabled": true,
|
|
340
|
+
"languages": ["Scala"],
|
|
341
|
+
"parameters": [
|
|
342
|
+
{
|
|
343
|
+
"name": "minSize",
|
|
344
|
+
"default": "128",
|
|
345
|
+
"description": "the minimum for the key size in bits"
|
|
346
|
+
}
|
|
347
|
+
]
|
|
348
|
+
},
|
|
349
|
+
{
|
|
350
|
+
"id": "Custom_Scala_InsufficientKeySizeRsaDetector",
|
|
351
|
+
"category": "Security",
|
|
352
|
+
"severityLevel": "High",
|
|
353
|
+
"title": "Prohibit RSA Usage with Short Key",
|
|
354
|
+
"enabled": true,
|
|
355
|
+
"languages": ["Scala"],
|
|
356
|
+
"parameters": [
|
|
357
|
+
{
|
|
358
|
+
"name": "minSize",
|
|
359
|
+
"default": "1024",
|
|
360
|
+
"description": "the minimum for the key size in bits"
|
|
361
|
+
}
|
|
362
|
+
]
|
|
363
|
+
},
|
|
364
|
+
{
|
|
365
|
+
"id": "Custom_Scala_IsDefined",
|
|
366
|
+
"category": "BestPractice",
|
|
367
|
+
"severityLevel": "Info",
|
|
368
|
+
"title": "Avoid Using isDefined on Optional Types",
|
|
369
|
+
"enabled": false,
|
|
370
|
+
"languages": ["Scala"],
|
|
371
|
+
"parameters": []
|
|
372
|
+
},
|
|
373
|
+
{
|
|
374
|
+
"id": "Custom_Scala_JavaThreads",
|
|
375
|
+
"category": "BestPractice",
|
|
376
|
+
"severityLevel": "Warning",
|
|
377
|
+
"title": "Avoid Creating Threads Directly",
|
|
378
|
+
"enabled": true,
|
|
379
|
+
"languages": ["Scala"],
|
|
380
|
+
"parameters": []
|
|
381
|
+
},
|
|
382
|
+
{
|
|
383
|
+
"id": "Custom_Scala_LowerCasePatternMatching",
|
|
384
|
+
"category": "ErrorProne",
|
|
385
|
+
"severityLevel": "High",
|
|
386
|
+
"title": "Prohibit Lowercase Pattern Matching in Case Statements",
|
|
387
|
+
"enabled": false,
|
|
388
|
+
"languages": ["Scala"],
|
|
389
|
+
"parameters": []
|
|
390
|
+
},
|
|
391
|
+
{
|
|
392
|
+
"id": "Custom_Scala_NameResultsAndParameters",
|
|
393
|
+
"category": "Comprehensibility",
|
|
394
|
+
"severityLevel": "Info",
|
|
395
|
+
"title": "Prohibit Unnamed Values on Intermediate Results and Parameters",
|
|
396
|
+
"enabled": true,
|
|
397
|
+
"languages": ["Scala"],
|
|
398
|
+
"parameters": []
|
|
399
|
+
},
|
|
400
|
+
{
|
|
401
|
+
"id": "Custom_Scala_NonFatal",
|
|
402
|
+
"category": "ErrorProne",
|
|
403
|
+
"severityLevel": "High",
|
|
404
|
+
"title": "Prohibit Catching Fatal Exceptions",
|
|
405
|
+
"enabled": true,
|
|
406
|
+
"languages": ["Scala"],
|
|
407
|
+
"parameters": []
|
|
408
|
+
},
|
|
409
|
+
{
|
|
410
|
+
"id": "Custom_Scala_NotUsingNonEmpty",
|
|
411
|
+
"category": "CodeStyle",
|
|
412
|
+
"severityLevel": "Info",
|
|
413
|
+
"title": "Prefer using .nonEmpty",
|
|
414
|
+
"enabled": false,
|
|
415
|
+
"languages": ["Scala"],
|
|
416
|
+
"parameters": []
|
|
417
|
+
},
|
|
418
|
+
{
|
|
419
|
+
"id": "Custom_Scala_NullCipherDetector",
|
|
420
|
+
"category": "Security",
|
|
421
|
+
"severityLevel": "High",
|
|
422
|
+
"title": "Avoid using the NullCipher",
|
|
423
|
+
"enabled": true,
|
|
424
|
+
"languages": ["Scala"],
|
|
425
|
+
"parameters": []
|
|
426
|
+
},
|
|
427
|
+
{
|
|
428
|
+
"id": "Custom_Scala_ObjDeserialization",
|
|
429
|
+
"category": "Security",
|
|
430
|
+
"severityLevel": "Error",
|
|
431
|
+
"title": "Avoid Object Deserialization of Untrusted Data",
|
|
432
|
+
"enabled": true,
|
|
433
|
+
"languages": ["Scala"],
|
|
434
|
+
"parameters": []
|
|
435
|
+
},
|
|
436
|
+
{
|
|
437
|
+
"id": "Custom_Scala_PathTraversal",
|
|
438
|
+
"category": "Security",
|
|
439
|
+
"severityLevel": "Error",
|
|
440
|
+
"title": "Prevent Path Traversal",
|
|
441
|
+
"enabled": true,
|
|
442
|
+
"languages": ["Scala"],
|
|
443
|
+
"parameters": []
|
|
444
|
+
},
|
|
445
|
+
{
|
|
446
|
+
"id": "Custom_Scala_PatternMatchingInHigherOrderFunctions",
|
|
447
|
+
"category": "CodeStyle",
|
|
448
|
+
"severityLevel": "Info",
|
|
449
|
+
"title": "Enforce Using Pattern Matching Directly in Function Definitions",
|
|
450
|
+
"enabled": false,
|
|
451
|
+
"languages": ["Scala"],
|
|
452
|
+
"parameters": []
|
|
453
|
+
},
|
|
454
|
+
{
|
|
455
|
+
"id": "Custom_Scala_PatternMatchingWhenDefaults",
|
|
456
|
+
"category": "BestPractice",
|
|
457
|
+
"severityLevel": "Info",
|
|
458
|
+
"title": "Enforce Using Defaults Instead of Pattern Matching for Conditional Execution",
|
|
459
|
+
"enabled": false,
|
|
460
|
+
"languages": ["Scala"],
|
|
461
|
+
"parameters": []
|
|
462
|
+
},
|
|
463
|
+
{
|
|
464
|
+
"id": "Custom_Scala_PlayHttpHeaderReferer",
|
|
465
|
+
"category": "Security",
|
|
466
|
+
"severityLevel": "High",
|
|
467
|
+
"title": "Avoid Using Untrusted HTTP Referer Header in Security Decisions",
|
|
468
|
+
"enabled": true,
|
|
469
|
+
"languages": ["Scala"],
|
|
470
|
+
"parameters": []
|
|
471
|
+
},
|
|
472
|
+
{
|
|
473
|
+
"id": "Custom_Scala_PlayHttpHeaderUserAgent",
|
|
474
|
+
"category": "Security",
|
|
475
|
+
"severityLevel": "High",
|
|
476
|
+
"title": "Avoid Using Untrusted User-Agent HTTP Header for Security Decisions",
|
|
477
|
+
"enabled": true,
|
|
478
|
+
"languages": ["Scala"],
|
|
479
|
+
"parameters": []
|
|
480
|
+
},
|
|
481
|
+
{
|
|
482
|
+
"id": "Custom_Scala_PlayRequestHeaders",
|
|
483
|
+
"category": "Security",
|
|
484
|
+
"severityLevel": "High",
|
|
485
|
+
"title": "Avoid trusting untrusted HTTP request headers",
|
|
486
|
+
"enabled": true,
|
|
487
|
+
"languages": ["Scala"],
|
|
488
|
+
"parameters": []
|
|
489
|
+
},
|
|
490
|
+
{
|
|
491
|
+
"id": "Custom_Scala_PlayUntrustedContentTypeHeader",
|
|
492
|
+
"category": "Security",
|
|
493
|
+
"severityLevel": "High",
|
|
494
|
+
"title": "Avoid Using Untrusted Content-Type Header in Play Framework",
|
|
495
|
+
"enabled": true,
|
|
496
|
+
"languages": ["Scala"],
|
|
497
|
+
"parameters": []
|
|
498
|
+
},
|
|
499
|
+
{
|
|
500
|
+
"id": "Custom_Scala_PlayUntrustedHttpRequestParameter",
|
|
501
|
+
"category": "Security",
|
|
502
|
+
"severityLevel": "Error",
|
|
503
|
+
"title": "Prohibit usage of untrusted Http-Request parameters",
|
|
504
|
+
"enabled": true,
|
|
505
|
+
"languages": ["Scala"],
|
|
506
|
+
"parameters": []
|
|
507
|
+
},
|
|
508
|
+
{
|
|
509
|
+
"id": "Custom_Scala_PlayUnvalidatedRedirect",
|
|
510
|
+
"category": "Security",
|
|
511
|
+
"severityLevel": "High",
|
|
512
|
+
"title": "Avoid Unvalidated Redirects in Play Framework",
|
|
513
|
+
"enabled": true,
|
|
514
|
+
"languages": ["Scala"],
|
|
515
|
+
"parameters": []
|
|
516
|
+
},
|
|
517
|
+
{
|
|
518
|
+
"id": "Custom_Scala_PotentialFileNameInjection",
|
|
519
|
+
"category": "Security",
|
|
520
|
+
"severityLevel": "High",
|
|
521
|
+
"title": "Prevent Potential Filename Injection",
|
|
522
|
+
"enabled": true,
|
|
523
|
+
"languages": ["Scala"],
|
|
524
|
+
"parameters": []
|
|
525
|
+
},
|
|
526
|
+
{
|
|
527
|
+
"id": "Custom_Scala_PredictableRandom",
|
|
528
|
+
"category": "Security",
|
|
529
|
+
"severityLevel": "High",
|
|
530
|
+
"title": "Prohibit Use of Weak Random Generator",
|
|
531
|
+
"enabled": true,
|
|
532
|
+
"languages": ["Scala"],
|
|
533
|
+
"parameters": []
|
|
534
|
+
},
|
|
535
|
+
{
|
|
536
|
+
"id": "Custom_Scala_PreferImmutableCollections",
|
|
537
|
+
"category": "BestPractice",
|
|
538
|
+
"severityLevel": "Warning",
|
|
539
|
+
"title": "Enforce Prefer Immutable Collections",
|
|
540
|
+
"enabled": false,
|
|
541
|
+
"languages": ["Scala"],
|
|
542
|
+
"parameters": []
|
|
543
|
+
},
|
|
544
|
+
{
|
|
545
|
+
"id": "Custom_Scala_ProhibitObjectName",
|
|
546
|
+
"category": "BestPractice",
|
|
547
|
+
"severityLevel": "Info",
|
|
548
|
+
"title": "Prohibit Method Names That Contain Their Object Name",
|
|
549
|
+
"enabled": true,
|
|
550
|
+
"languages": ["Scala"],
|
|
551
|
+
"parameters": []
|
|
552
|
+
},
|
|
553
|
+
{
|
|
554
|
+
"id": "Custom_Scala_ReDosDetector",
|
|
555
|
+
"category": "Security",
|
|
556
|
+
"severityLevel": "Error",
|
|
557
|
+
"title": "Avoid Implementing Dangerous Regular Expressions",
|
|
558
|
+
"enabled": true,
|
|
559
|
+
"languages": ["Scala"],
|
|
560
|
+
"parameters": []
|
|
561
|
+
},
|
|
562
|
+
{
|
|
563
|
+
"id": "Custom_Scala_ReservedKeywords",
|
|
564
|
+
"category": "ErrorProne",
|
|
565
|
+
"severityLevel": "High",
|
|
566
|
+
"title": "Avoid Using Reserved Scala Keywords as Identifiers",
|
|
567
|
+
"enabled": true,
|
|
568
|
+
"languages": ["Scala"],
|
|
569
|
+
"parameters": [
|
|
570
|
+
{
|
|
571
|
+
"name": "exclude",
|
|
572
|
+
"default": "[]",
|
|
573
|
+
"description": "Set of reserved keywords excluded from the search"
|
|
574
|
+
}
|
|
575
|
+
]
|
|
576
|
+
},
|
|
577
|
+
{
|
|
578
|
+
"id": "Custom_Scala_ReturnFinally",
|
|
579
|
+
"category": "ErrorProne",
|
|
580
|
+
"severityLevel": "High",
|
|
581
|
+
"title": "Avoid return statement inside finally blocks",
|
|
582
|
+
"enabled": false,
|
|
583
|
+
"languages": ["Scala"],
|
|
584
|
+
"parameters": []
|
|
585
|
+
},
|
|
586
|
+
{
|
|
587
|
+
"id": "Custom_Scala_RSAPadding",
|
|
588
|
+
"category": "Security",
|
|
589
|
+
"severityLevel": "Error",
|
|
590
|
+
"title": "Enforce RSA Algorithm Padding",
|
|
591
|
+
"enabled": true,
|
|
592
|
+
"languages": ["Scala"],
|
|
593
|
+
"parameters": []
|
|
594
|
+
},
|
|
595
|
+
{
|
|
596
|
+
"id": "Custom_Scala_SprayHttpHeaderHost",
|
|
597
|
+
"category": "Security",
|
|
598
|
+
"severityLevel": "High",
|
|
599
|
+
"title": "Avoid Using Untrusted HTTP Host Header for Security Decisions",
|
|
600
|
+
"enabled": true,
|
|
601
|
+
"languages": ["Scala"],
|
|
602
|
+
"parameters": []
|
|
603
|
+
},
|
|
604
|
+
{
|
|
605
|
+
"id": "Custom_Scala_SprayHttpHeaderReferer",
|
|
606
|
+
"category": "Security",
|
|
607
|
+
"severityLevel": "High",
|
|
608
|
+
"title": "Avoid Using Untrusted HTTP Referer Header for Security Decisions",
|
|
609
|
+
"enabled": true,
|
|
610
|
+
"languages": ["Scala"],
|
|
611
|
+
"parameters": []
|
|
612
|
+
},
|
|
613
|
+
{
|
|
614
|
+
"id": "Custom_Scala_SprayHttpHeaderUserAgent",
|
|
615
|
+
"category": "Security",
|
|
616
|
+
"severityLevel": "High",
|
|
617
|
+
"title": "Avoid Using Untrusted User-Agent HTTP Header in Security Decisions",
|
|
618
|
+
"enabled": true,
|
|
619
|
+
"languages": ["Scala"],
|
|
620
|
+
"parameters": []
|
|
621
|
+
},
|
|
622
|
+
{
|
|
623
|
+
"id": "Custom_Scala_SprayRequestHeaders",
|
|
624
|
+
"category": "Security",
|
|
625
|
+
"severityLevel": "High",
|
|
626
|
+
"title": "Avoid trusting untrusted HTTP request headers",
|
|
627
|
+
"enabled": true,
|
|
628
|
+
"languages": ["Scala"],
|
|
629
|
+
"parameters": []
|
|
630
|
+
},
|
|
631
|
+
{
|
|
632
|
+
"id": "Custom_Scala_SprayUntrustedContentTypeHeader",
|
|
633
|
+
"category": "Security",
|
|
634
|
+
"severityLevel": "High",
|
|
635
|
+
"title": "Avoid Using Untrusted Content-Type Header in Spray",
|
|
636
|
+
"enabled": true,
|
|
637
|
+
"languages": ["Scala"],
|
|
638
|
+
"parameters": []
|
|
639
|
+
},
|
|
640
|
+
{
|
|
641
|
+
"id": "Custom_Scala_SprayUntrustedHttpRequestParameter",
|
|
642
|
+
"category": "Security",
|
|
643
|
+
"severityLevel": "High",
|
|
644
|
+
"title": "Prohibit usage of untrusted HTTP request parameters",
|
|
645
|
+
"enabled": true,
|
|
646
|
+
"languages": ["Scala"],
|
|
647
|
+
"parameters": []
|
|
648
|
+
},
|
|
649
|
+
{
|
|
650
|
+
"id": "Custom_Scala_SprayUntrustedSessionCookie",
|
|
651
|
+
"category": "Security",
|
|
652
|
+
"severityLevel": "Error",
|
|
653
|
+
"title": "Avoid Untrusted Usage of Session Cookie Value",
|
|
654
|
+
"enabled": true,
|
|
655
|
+
"languages": ["Scala"],
|
|
656
|
+
"parameters": []
|
|
657
|
+
},
|
|
658
|
+
{
|
|
659
|
+
"id": "Custom_Scala_SprayUnvalidatedRedirect",
|
|
660
|
+
"category": "Security",
|
|
661
|
+
"severityLevel": "High",
|
|
662
|
+
"title": "Avoid Unvalidated Redirects in Spray Framework",
|
|
663
|
+
"enabled": true,
|
|
664
|
+
"languages": ["Scala"],
|
|
665
|
+
"parameters": []
|
|
666
|
+
},
|
|
667
|
+
{
|
|
668
|
+
"id": "Custom_Scala_SQLSelectAll",
|
|
669
|
+
"category": "Performance",
|
|
670
|
+
"severityLevel": "Warning",
|
|
671
|
+
"title": "Prohibit SELECT * in SQL Queries",
|
|
672
|
+
"enabled": true,
|
|
673
|
+
"languages": ["Scala"],
|
|
674
|
+
"parameters": []
|
|
675
|
+
},
|
|
676
|
+
{
|
|
677
|
+
"id": "Custom_Scala_StructuralTypes",
|
|
678
|
+
"category": "Performance",
|
|
679
|
+
"severityLevel": "Warning",
|
|
680
|
+
"title": "Avoid Usage of Structural Types",
|
|
681
|
+
"enabled": true,
|
|
682
|
+
"languages": ["Scala"],
|
|
683
|
+
"parameters": []
|
|
684
|
+
},
|
|
685
|
+
{
|
|
686
|
+
"id": "Custom_Scala_TypedEquality",
|
|
687
|
+
"category": "ErrorProne",
|
|
688
|
+
"severityLevel": "High",
|
|
689
|
+
"title": "Enforce typed equality comparison",
|
|
690
|
+
"enabled": false,
|
|
691
|
+
"languages": ["Scala"],
|
|
692
|
+
"parameters": []
|
|
693
|
+
},
|
|
694
|
+
{
|
|
695
|
+
"id": "Custom_Scala_TypeParameterName",
|
|
696
|
+
"category": "CodeStyle",
|
|
697
|
+
"severityLevel": "Info",
|
|
698
|
+
"title": "Enforce Type Parameter Naming Convention",
|
|
699
|
+
"enabled": false,
|
|
700
|
+
"languages": ["Scala"],
|
|
701
|
+
"parameters": [
|
|
702
|
+
{
|
|
703
|
+
"name": "regex",
|
|
704
|
+
"default": "^[A-Z]$",
|
|
705
|
+
"description": "Regular expression"
|
|
706
|
+
}
|
|
707
|
+
]
|
|
708
|
+
},
|
|
709
|
+
{
|
|
710
|
+
"id": "Custom_Scala_UnencryptedSocket",
|
|
711
|
+
"category": "Security",
|
|
712
|
+
"severityLevel": "Error",
|
|
713
|
+
"title": "Prohibit Unencrypted Sockets",
|
|
714
|
+
"enabled": true,
|
|
715
|
+
"languages": ["Scala"],
|
|
716
|
+
"parameters": []
|
|
717
|
+
},
|
|
718
|
+
{
|
|
719
|
+
"id": "Custom_Scala_UnusedPrivateVariables",
|
|
720
|
+
"category": "UnusedCode",
|
|
721
|
+
"severityLevel": "Warning",
|
|
722
|
+
"title": "Prohibit unused private variables",
|
|
723
|
+
"enabled": false,
|
|
724
|
+
"languages": ["Scala"],
|
|
725
|
+
"parameters": []
|
|
726
|
+
},
|
|
727
|
+
{
|
|
728
|
+
"id": "Custom_Scala_UsefulTypeAlias",
|
|
729
|
+
"category": "CodeStyle",
|
|
730
|
+
"severityLevel": "Info",
|
|
731
|
+
"title": "Avoid Self-Explanatory Type Aliases",
|
|
732
|
+
"enabled": true,
|
|
733
|
+
"languages": ["Scala"],
|
|
734
|
+
"parameters": []
|
|
735
|
+
},
|
|
736
|
+
{
|
|
737
|
+
"id": "Custom_Scala_UselessComparison",
|
|
738
|
+
"category": "ErrorProne",
|
|
739
|
+
"severityLevel": "High",
|
|
740
|
+
"title": "Prohibit Useless Comparisons",
|
|
741
|
+
"enabled": false,
|
|
742
|
+
"languages": ["Scala"],
|
|
743
|
+
"parameters": []
|
|
744
|
+
},
|
|
745
|
+
{
|
|
746
|
+
"id": "Custom_Scala_UsingDateTimeNow",
|
|
747
|
+
"category": "ErrorProne",
|
|
748
|
+
"severityLevel": "High",
|
|
749
|
+
"title": "Avoid using DateTime.now without a timezone",
|
|
750
|
+
"enabled": false,
|
|
751
|
+
"languages": ["Scala"],
|
|
752
|
+
"parameters": []
|
|
753
|
+
},
|
|
754
|
+
{
|
|
755
|
+
"id": "Custom_Scala_UtilTryForTryCatch",
|
|
756
|
+
"category": "BestPractice",
|
|
757
|
+
"severityLevel": "Warning",
|
|
758
|
+
"title": "Enforce usage of util.Try object instead of try-catch blocks",
|
|
759
|
+
"enabled": true,
|
|
760
|
+
"languages": ["Scala"],
|
|
761
|
+
"parameters": []
|
|
762
|
+
},
|
|
763
|
+
{
|
|
764
|
+
"id": "Custom_Scala_WeakCustomDigest",
|
|
765
|
+
"category": "Security",
|
|
766
|
+
"severityLevel": "High",
|
|
767
|
+
"title": "Prohibit Custom Message Digest Implementation",
|
|
768
|
+
"enabled": true,
|
|
769
|
+
"languages": ["Scala"],
|
|
770
|
+
"parameters": []
|
|
771
|
+
},
|
|
772
|
+
{
|
|
773
|
+
"id": "Custom_Scala_WeakDigest",
|
|
774
|
+
"category": "Security",
|
|
775
|
+
"severityLevel": "High",
|
|
776
|
+
"title": "Prohibit Use of Weak Message Digest Algorithms",
|
|
777
|
+
"enabled": true,
|
|
778
|
+
"languages": ["Scala"],
|
|
779
|
+
"parameters": []
|
|
780
|
+
},
|
|
781
|
+
{
|
|
782
|
+
"id": "Custom_Scala_WildcardImportOnMany",
|
|
783
|
+
"category": "CodeStyle",
|
|
784
|
+
"severityLevel": "Info",
|
|
785
|
+
"title": "Enforce Wildcard Imports When Importing More Than Six Names",
|
|
786
|
+
"enabled": true,
|
|
787
|
+
"languages": ["Scala"],
|
|
788
|
+
"parameters": []
|
|
789
|
+
},
|
|
790
|
+
{
|
|
791
|
+
"id": "Custom_Scala_WithNameCalls",
|
|
792
|
+
"category": "ErrorProne",
|
|
793
|
+
"severityLevel": "High",
|
|
794
|
+
"title": "Avoid Using withName on Enumeration",
|
|
795
|
+
"enabled": true,
|
|
796
|
+
"languages": ["Scala"],
|
|
797
|
+
"parameters": []
|
|
798
|
+
},
|
|
799
|
+
{
|
|
800
|
+
"id": "Custom_Scala_XEEVulnerability",
|
|
801
|
+
"category": "Security",
|
|
802
|
+
"severityLevel": "Error",
|
|
803
|
+
"title": "Prevent XML External Entity (XXE) Attacks",
|
|
804
|
+
"enabled": true,
|
|
805
|
+
"languages": ["Scala"],
|
|
806
|
+
"parameters": []
|
|
807
|
+
},
|
|
808
|
+
{
|
|
809
|
+
"id": "Custom_Scala_XSSescapeXml",
|
|
810
|
+
"category": "Security",
|
|
811
|
+
"severityLevel": "Error",
|
|
812
|
+
"title": "Prevent XML XSS by Escaping Special Characters",
|
|
813
|
+
"enabled": true,
|
|
814
|
+
"languages": ["Scala"],
|
|
815
|
+
"parameters": []
|
|
816
|
+
},
|
|
817
|
+
{
|
|
818
|
+
"id": "MethodNamesChecker",
|
|
819
|
+
"category": "CodeStyle",
|
|
820
|
+
"severityLevel": "Info",
|
|
821
|
+
"title": "Enforce Method Naming Convention",
|
|
822
|
+
"enabled": false,
|
|
823
|
+
"languages": ["Scala"],
|
|
824
|
+
"parameters": [
|
|
825
|
+
{
|
|
826
|
+
"name": "regex",
|
|
827
|
+
"default": "^([a-z][A-Za-z0-9]*|<<|>>>|>|==|!=|<|<=|>|>=|\\||&|\\^|\\+|-|\\*|\\/|%|\\|\\||&&|\\+\\+|--|\\+=|-=)$",
|
|
828
|
+
"description": "The regex for name validation"
|
|
829
|
+
}
|
|
830
|
+
]
|
|
831
|
+
},
|
|
832
|
+
{
|
|
833
|
+
"id": "MultipleStringLiteralsChecker",
|
|
834
|
+
"category": "BestPractice",
|
|
835
|
+
"severityLevel": "Warning",
|
|
836
|
+
"title": "Prohibit Duplicate String Literals",
|
|
837
|
+
"enabled": false,
|
|
838
|
+
"languages": ["Scala"],
|
|
839
|
+
"parameters": []
|
|
840
|
+
},
|
|
841
|
+
{
|
|
842
|
+
"id": "ObjectNamesChecker",
|
|
843
|
+
"category": "CodeStyle",
|
|
844
|
+
"severityLevel": "Info",
|
|
845
|
+
"title": "Enforce Object Naming Convention",
|
|
846
|
+
"enabled": false,
|
|
847
|
+
"languages": ["Scala"],
|
|
848
|
+
"parameters": [
|
|
849
|
+
{
|
|
850
|
+
"name": "regex",
|
|
851
|
+
"default": "^[A-Z][A-Za-z0-9]*$",
|
|
852
|
+
"description": "The regex for name validation"
|
|
853
|
+
}
|
|
854
|
+
]
|
|
855
|
+
}
|
|
856
|
+
]
|