@codacy/tools-unsupported-tools 0.13.0 → 0.15.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/dist/index.js CHANGED
@@ -90,7 +90,7 @@ var descriptors_default = [
90
90
  {
91
91
  id: "Credo",
92
92
  displayName: "Credo",
93
- preferredVersion: "1.7.12",
93
+ preferredVersion: "1.7.19",
94
94
  languages: ["Elixir"],
95
95
  filePatterns: ["*"],
96
96
  supportedOS: ["linux", "darwin", "win32"],
@@ -111,6 +111,18 @@ var descriptors_default = [
111
111
  uuid: "f67f7669-fff1-4f28-8a37-b665e5ebd182",
112
112
  unsupported: true
113
113
  },
114
+ {
115
+ id: "PHPCSFIXER",
116
+ displayName: "PHP CS Fixer",
117
+ preferredVersion: "3.95.17",
118
+ languages: ["PHP"],
119
+ filePatterns: ["*"],
120
+ supportedOS: ["linux", "darwin", "win32"],
121
+ supportedArch: ["x64", "arm64"],
122
+ supportedRunners: ["container"],
123
+ uuid: "b31b3dca-2d42-4db6-a849-b99e652d662c",
124
+ unsupported: true
125
+ },
114
126
  {
115
127
  id: "phpmd",
116
128
  displayName: "PHP Mess Detector",
@@ -126,7 +138,7 @@ var descriptors_default = [
126
138
  {
127
139
  id: "psscriptanalyzer",
128
140
  displayName: "PSScriptAnalyzer",
129
- preferredVersion: "1.24.0",
141
+ preferredVersion: "1.25.0",
130
142
  languages: ["Powershell"],
131
143
  filePatterns: ["*"],
132
144
  supportedOS: ["linux", "darwin", "win32"],
@@ -193,29 +205,29 @@ var framework_mappings_default = {
193
205
  symfony: { prefixes: ["PHPCS_Symfony_"] }
194
206
  },
195
207
  SonarCSharp: {
196
- "aspnet-core": { tags: ["aspnetcore"] },
197
- blazor: { tags: ["blazor"] },
198
- "entity-framework": { tags: ["entityframework", "entityframeworkcore"] },
199
- xunit: { tags: ["xunit"] },
200
- nunit: { tags: ["nunit"] },
201
- mstest: { tags: ["mstest"] },
202
- moq: { tags: ["moq"] },
203
- nsubstitute: { tags: ["nsubstitute"] },
204
- fluentassertions: { tags: ["fluentassertions"] },
205
- shouldly: { tags: ["shouldly"] },
206
- serilog: { tags: ["serilog"] },
207
- nlog: { tags: ["nlog"] },
208
- log4net: { tags: ["log4net", "apachelog4net"] }
208
+ "aspnet-core": { tags: ["fwk:aspnet-core"] },
209
+ blazor: { tags: ["fwk:blazor"] },
210
+ "entity-framework": { tags: ["lib:entity-framework"] },
211
+ xunit: { tags: ["lib:xunit"] },
212
+ nunit: { tags: ["lib:nunit"] },
213
+ mstest: { tags: ["lib:mstest"] },
214
+ moq: { tags: ["lib:moq"] },
215
+ nsubstitute: { tags: ["lib:nsubstitute"] },
216
+ fluentassertions: { tags: ["lib:fluentassertions"] },
217
+ shouldly: { tags: ["lib:shouldly"] },
218
+ serilog: { tags: ["lib:serilog"] },
219
+ nlog: { tags: ["lib:nlog"] },
220
+ log4net: { tags: ["lib:log4net"] }
209
221
  },
210
222
  "codacy-scalameta-pro": {
211
223
  "play-framework": { prefixes: ["Custom_Scala_Play"] }
212
224
  },
213
225
  CodeNarc: {
214
- grails: { tags: ["grails"] },
215
- "grails-gorm": { tags: ["gorm"] },
216
- spock: { tags: ["spock"] },
217
- jenkins: { tags: ["jenkins", "jenkinspipeline"] },
218
- junit: { tags: ["junit"] }
226
+ grails: { tags: ["fwk:grails"] },
227
+ "grails-gorm": { tags: ["lib:grails-gorm"] },
228
+ spock: { tags: ["lib:spock"] },
229
+ jenkins: { tags: ["tool:jenkins"] },
230
+ junit: { tags: ["lib:junit"] }
219
231
  }
220
232
  };
221
233
 
@@ -492,7 +492,7 @@
492
492
  "description": "compilerPhase"
493
493
  }
494
494
  ],
495
- "tags": ["jenkins"]
495
+ "tags": ["tool:jenkins"]
496
496
  },
497
497
  {
498
498
  "id": "CodeNarc_ClassSize",
@@ -564,7 +564,7 @@
564
564
  "severityLevel": "Warning",
565
565
  "title": "Enforce Implementation of Closeable for Classes Defining close() Method",
566
566
  "enabled": true,
567
- "languages": ["Java"],
567
+ "languages": ["Groovy", "Java"],
568
568
  "parameters": []
569
569
  },
570
570
  {
@@ -813,7 +813,7 @@
813
813
  "description": "cpsScriptVariableName"
814
814
  }
815
815
  ],
816
- "tags": ["jenkinspipeline"]
816
+ "tags": ["tool:jenkins"]
817
817
  },
818
818
  {
819
819
  "id": "CodeNarc_CrapMetric",
@@ -885,7 +885,7 @@
885
885
  "severityLevel": "High",
886
886
  "title": "Avoid Direct Database Connection Management",
887
887
  "enabled": true,
888
- "languages": ["Java"],
888
+ "languages": ["Groovy", "Java"],
889
889
  "parameters": []
890
890
  },
891
891
  {
@@ -1165,7 +1165,7 @@
1165
1165
  "severityLevel": "Warning",
1166
1166
  "title": "Avoid Defining Custom Serialization Methods or Fields in Enums",
1167
1167
  "enabled": true,
1168
- "languages": ["Java"],
1168
+ "languages": ["Groovy", "Java"],
1169
1169
  "parameters": []
1170
1170
  },
1171
1171
  {
@@ -1529,7 +1529,7 @@
1529
1529
  "description": "compilerPhase"
1530
1530
  }
1531
1531
  ],
1532
- "tags": ["jenkins"]
1532
+ "tags": ["tool:jenkins"]
1533
1533
  },
1534
1534
  {
1535
1535
  "id": "CodeNarc_FactoryMethodName",
@@ -1653,7 +1653,7 @@
1653
1653
  "description": "compilerPhase"
1654
1654
  }
1655
1655
  ],
1656
- "tags": ["jenkins"]
1656
+ "tags": ["tool:jenkins"]
1657
1657
  },
1658
1658
  {
1659
1659
  "id": "CodeNarc_ForLoopShouldBeWhileLoop",
@@ -1702,7 +1702,7 @@
1702
1702
  "description": "compilerPhase"
1703
1703
  }
1704
1704
  ],
1705
- "tags": ["grails", "gorm"]
1705
+ "tags": ["fwk:grails", "lib:grails-gorm"]
1706
1706
  },
1707
1707
  {
1708
1708
  "id": "CodeNarc_GrailsDomainHasEquals",
@@ -1718,7 +1718,7 @@
1718
1718
  "description": "applyToFilesMatching"
1719
1719
  }
1720
1720
  ],
1721
- "tags": ["grails"]
1721
+ "tags": ["fwk:grails"]
1722
1722
  },
1723
1723
  {
1724
1724
  "id": "CodeNarc_GrailsDomainHasToString",
@@ -1734,7 +1734,7 @@
1734
1734
  "description": "applyToFilesMatching"
1735
1735
  }
1736
1736
  ],
1737
- "tags": ["grails"]
1737
+ "tags": ["fwk:grails"]
1738
1738
  },
1739
1739
  {
1740
1740
  "id": "CodeNarc_GrailsDomainReservedSqlKeywordName",
@@ -1760,7 +1760,7 @@
1760
1760
  "description": "applyToFilesMatching"
1761
1761
  }
1762
1762
  ],
1763
- "tags": ["grails"]
1763
+ "tags": ["fwk:grails"]
1764
1764
  },
1765
1765
  {
1766
1766
  "id": "CodeNarc_GrailsDomainStringPropertyMaxSize",
@@ -1776,7 +1776,7 @@
1776
1776
  "description": "applyToFilesMatching"
1777
1777
  }
1778
1778
  ],
1779
- "tags": ["grails"]
1779
+ "tags": ["fwk:grails"]
1780
1780
  },
1781
1781
  {
1782
1782
  "id": "CodeNarc_GrailsDomainWithServiceReference",
@@ -1792,7 +1792,7 @@
1792
1792
  "description": "applyToFilesMatching"
1793
1793
  }
1794
1794
  ],
1795
- "tags": ["grails"]
1795
+ "tags": ["fwk:grails"]
1796
1796
  },
1797
1797
  {
1798
1798
  "id": "CodeNarc_GrailsDuplicateConstraint",
@@ -1808,7 +1808,7 @@
1808
1808
  "description": "applyToFilesMatching"
1809
1809
  }
1810
1810
  ],
1811
- "tags": ["grails"]
1811
+ "tags": ["fwk:grails"]
1812
1812
  },
1813
1813
  {
1814
1814
  "id": "CodeNarc_GrailsDuplicateMapping",
@@ -1824,7 +1824,7 @@
1824
1824
  "description": "applyToFilesMatching"
1825
1825
  }
1826
1826
  ],
1827
- "tags": ["grails"]
1827
+ "tags": ["fwk:grails"]
1828
1828
  },
1829
1829
  {
1830
1830
  "id": "CodeNarc_GrailsMassAssignment",
@@ -1859,7 +1859,7 @@
1859
1859
  "description": "ignoreMethodNames"
1860
1860
  }
1861
1861
  ],
1862
- "tags": ["grails"]
1862
+ "tags": ["fwk:grails"]
1863
1863
  },
1864
1864
  {
1865
1865
  "id": "CodeNarc_GrailsServletContextReference",
@@ -1875,7 +1875,7 @@
1875
1875
  "description": "applyToFilesMatching"
1876
1876
  }
1877
1877
  ],
1878
- "tags": ["grails"]
1878
+ "tags": ["fwk:grails"]
1879
1879
  },
1880
1880
  {
1881
1881
  "id": "CodeNarc_GrailsStatelessService",
@@ -2395,7 +2395,7 @@
2395
2395
  "severityLevel": "High",
2396
2396
  "title": "Avoid Using java.io Package for File System Access in Enterprise JavaBeans",
2397
2397
  "enabled": true,
2398
- "languages": ["Java"],
2398
+ "languages": ["Groovy", "Java"],
2399
2399
  "parameters": [
2400
2400
  {
2401
2401
  "name": "doNotApplyToFilesMatching",
@@ -2605,7 +2605,7 @@
2605
2605
  "description": "applyToClassNames"
2606
2606
  }
2607
2607
  ],
2608
- "tags": ["junit"]
2608
+ "tags": ["lib:junit"]
2609
2609
  },
2610
2610
  {
2611
2611
  "id": "CodeNarc_JUnitTestMethodWithoutAssert",
@@ -2641,7 +2641,7 @@
2641
2641
  "description": "applyToClassNames"
2642
2642
  }
2643
2643
  ],
2644
- "tags": ["junit"]
2644
+ "tags": ["lib:junit"]
2645
2645
  },
2646
2646
  {
2647
2647
  "id": "CodeNarc_JUnitUnnecessaryTearDown",
@@ -3068,7 +3068,7 @@
3068
3068
  "severityLevel": "High",
3069
3069
  "title": "Avoid Explicit Calls to Object Finalize Method",
3070
3070
  "enabled": true,
3071
- "languages": ["Java"],
3071
+ "languages": ["Groovy", "Java"],
3072
3072
  "parameters": []
3073
3073
  },
3074
3074
  {
@@ -3099,7 +3099,7 @@
3099
3099
  "description": "compilerPhase"
3100
3100
  }
3101
3101
  ],
3102
- "tags": ["jenkins"]
3102
+ "tags": ["tool:jenkins"]
3103
3103
  },
3104
3104
  {
3105
3105
  "id": "CodeNarc_OptionalCollectionReturnType",
@@ -3107,7 +3107,7 @@
3107
3107
  "severityLevel": "Warning",
3108
3108
  "title": "Avoid Optional Collection Return Types",
3109
3109
  "enabled": true,
3110
- "languages": ["Java"],
3110
+ "languages": ["Groovy", "Java"],
3111
3111
  "parameters": []
3112
3112
  },
3113
3113
  {
@@ -3116,7 +3116,7 @@
3116
3116
  "severityLevel": "Warning",
3117
3117
  "title": "AvoidUsingOptionalAsFieldType",
3118
3118
  "enabled": true,
3119
- "languages": ["Java"],
3119
+ "languages": ["Groovy", "Java"],
3120
3120
  "parameters": []
3121
3121
  },
3122
3122
  {
@@ -3225,7 +3225,7 @@
3225
3225
  "description": "compilerPhase"
3226
3226
  }
3227
3227
  ],
3228
- "tags": ["jenkins"]
3228
+ "tags": ["tool:jenkins"]
3229
3229
  },
3230
3230
  {
3231
3231
  "id": "CodeNarc_ParameterReassignment",
@@ -3447,7 +3447,7 @@
3447
3447
  "severityLevel": "Warning",
3448
3448
  "title": "Enforce Specifying Locale in SimpleDateFormat Instantiation",
3449
3449
  "enabled": true,
3450
- "languages": ["Java"],
3450
+ "languages": ["Groovy", "Java"],
3451
3451
  "parameters": []
3452
3452
  },
3453
3453
  {
@@ -3700,7 +3700,7 @@
3700
3700
  "description": "specificationSuperclassNames"
3701
3701
  }
3702
3702
  ],
3703
- "tags": ["spock"]
3703
+ "tags": ["lib:spock"]
3704
3704
  },
3705
3705
  {
3706
3706
  "id": "CodeNarc_SpockMissingAssert",
@@ -3721,7 +3721,7 @@
3721
3721
  "description": "specificationSuperclassNames"
3722
3722
  }
3723
3723
  ],
3724
- "tags": ["spock"]
3724
+ "tags": ["lib:spock"]
3725
3725
  },
3726
3726
  {
3727
3727
  "id": "CodeNarc_StatelessClass",
@@ -3824,7 +3824,7 @@
3824
3824
  "severityLevel": "High",
3825
3825
  "title": "Avoid Using Static SimpleDateFormat Fields",
3826
3826
  "enabled": true,
3827
- "languages": ["Java"],
3827
+ "languages": ["Groovy", "Java"],
3828
3828
  "parameters": []
3829
3829
  },
3830
3830
  {
@@ -3923,7 +3923,7 @@
3923
3923
  "severityLevel": "Warning",
3924
3924
  "title": "Avoid System.out Print Calls",
3925
3925
  "enabled": true,
3926
- "languages": ["Java"],
3926
+ "languages": ["Groovy", "Java"],
3927
3927
  "parameters": []
3928
3928
  },
3929
3929
  {
@@ -3968,7 +3968,7 @@
3968
3968
  "severityLevel": "High",
3969
3969
  "title": "Enforce ThreadLocal Fields to be Static and Final",
3970
3970
  "enabled": true,
3971
- "languages": ["Java"],
3971
+ "languages": ["Groovy", "Java"],
3972
3972
  "parameters": []
3973
3973
  },
3974
3974
  {
@@ -4731,7 +4731,7 @@
4731
4731
  "severityLevel": "Info",
4732
4732
  "title": "Use AssertSame Instead of AssertTrue for Reference Equality",
4733
4733
  "enabled": true,
4734
- "languages": ["Java"],
4734
+ "languages": ["Groovy", "Java"],
4735
4735
  "parameters": [
4736
4736
  {
4737
4737
  "name": "applyToClassNames",
@@ -4875,7 +4875,7 @@
4875
4875
  "severityLevel": "High",
4876
4876
  "title": "Enforce Wait Calls Within While Loops",
4877
4877
  "enabled": true,
4878
- "languages": ["Java"],
4878
+ "languages": ["Groovy", "Java"],
4879
4879
  "parameters": []
4880
4880
  },
4881
4881
  {
@@ -223,7 +223,13 @@
223
223
  "title": "Avoid Alias Renaming with :as for Readability",
224
224
  "enabled": false,
225
225
  "languages": ["Elixir"],
226
- "parameters": []
226
+ "parameters": [
227
+ {
228
+ "name": "ignore",
229
+ "default": "[]",
230
+ "description": "List of modules to ignore and allow to `alias Module, as: ...`"
231
+ }
232
+ ]
227
233
  },
228
234
  {
229
235
  "id": "Credo_readability_alias_order",
@@ -361,10 +367,15 @@
361
367
  "enabled": true,
362
368
  "languages": ["Elixir"],
363
369
  "parameters": [
370
+ {
371
+ "name": "ignore_modules_using",
372
+ "default": "[\"Elixir.Credo.Check\",\"Elixir.Ecto.Schema\",\"Elixir.Phoenix.LiveView\",\"\\\\.Web$\"]",
373
+ "description": "List of modules to ignore based on their `use` declarations. Accepts atoms, strings and regexes."
374
+ },
364
375
  {
365
376
  "name": "ignore_names",
366
377
  "default": "[\"(\\\\.\\\\w+Controller|\\\\.Endpoint|\\\\.\\\\w+Live(\\\\.\\\\w+)?|\\\\.Repo|\\\\.Router|\\\\.\\\\w+Socket|\\\\.\\\\w+View|\\\\.\\\\w+HTML|\\\\.\\\\w+JSON|\\\\.Telemetry|\\\\.Layouts|\\\\.Mailer)$\"]",
367
- "description": "All modules matching this regex (or list of regexes) will be ignored."
378
+ "description": "List of modules to ignore based on their name. Accepts atoms, strings and regexes."
368
379
  }
369
380
  ]
370
381
  },
@@ -532,6 +543,11 @@
532
543
  "name": "allow_0_arity_functions",
533
544
  "default": "false",
534
545
  "description": "Allow 0-arity functions"
546
+ },
547
+ {
548
+ "name": "allow_blocks",
549
+ "default": "true",
550
+ "description": "Allow block functions/macro like `for`, `if` or `case`"
535
551
  }
536
552
  ],
537
553
  "tags": ["readability"]
@@ -699,6 +715,21 @@
699
715
  "languages": ["Elixir"],
700
716
  "parameters": []
701
717
  },
718
+ {
719
+ "id": "Credo_refactor_cond_instead_of_if_else",
720
+ "category": "CodeStyle",
721
+ "severityLevel": "Info",
722
+ "title": "Prefer cond Instead of if/else",
723
+ "enabled": false,
724
+ "languages": ["Elixir"],
725
+ "parameters": [
726
+ {
727
+ "name": "allow_one_liners",
728
+ "default": "false",
729
+ "description": "Allow one-liner `if/else` expressions (e.g., `if x, do: y, else: z`)."
730
+ }
731
+ ]
732
+ },
702
733
  {
703
734
  "id": "Credo_refactor_cond_statements",
704
735
  "category": "Comprehensibility",
@@ -834,6 +865,11 @@
834
865
  "enabled": true,
835
866
  "languages": ["Elixir"],
836
867
  "parameters": [
868
+ {
869
+ "name": "allow_operators",
870
+ "default": "false",
871
+ "description": "Allow operators in conditions, e.g. `if contents = File.read(input <> \".txt\") do`"
872
+ },
837
873
  {
838
874
  "name": "allow_tagged_tuples",
839
875
  "default": "false",
@@ -861,7 +897,7 @@
861
897
  },
862
898
  {
863
899
  "name": "excluded_paths",
864
- "default": "[\"/test/\",\"^test/\"]",
900
+ "default": "[\"/test/\",\"test\"]",
865
901
  "description": "List of paths or regex to exclude from this check"
866
902
  },
867
903
  {
@@ -924,6 +960,11 @@
924
960
  {
925
961
  "name": "files",
926
962
  "default": "{\"included\":[\"test/**/*_test.exs\",\"apps/**/test/**/*_test.exs\"]}"
963
+ },
964
+ {
965
+ "name": "force_comment_on_explicit_false",
966
+ "default": "false",
967
+ "description": "Force adding a comment when `async: false` is used."
927
968
  }
928
969
  ]
929
970
  },
@@ -1041,7 +1082,13 @@
1041
1082
  "title": "Avoid Calls to dbg/0 and dbg/2 Outside Debugging",
1042
1083
  "enabled": true,
1043
1084
  "languages": ["Elixir"],
1044
- "parameters": []
1085
+ "parameters": [
1086
+ {
1087
+ "name": "allow_captures",
1088
+ "default": "false",
1089
+ "description": "Allow using a capture, e.g. `&dbg/1`."
1090
+ }
1091
+ ]
1045
1092
  },
1046
1093
  {
1047
1094
  "id": "Credo_warning_expensive_empty_enum_check",
@@ -1169,6 +1216,21 @@
1169
1216
  "languages": ["Elixir"],
1170
1217
  "parameters": []
1171
1218
  },
1219
+ {
1220
+ "id": "Credo_warning_struct_field_amount",
1221
+ "category": "Performance",
1222
+ "severityLevel": "Warning",
1223
+ "title": "Avoid structs with many fields",
1224
+ "enabled": true,
1225
+ "languages": ["Elixir"],
1226
+ "parameters": [
1227
+ {
1228
+ "name": "max_fields",
1229
+ "default": "31",
1230
+ "description": "The maximum number of field a struct should be allowed to have."
1231
+ }
1232
+ ]
1233
+ },
1172
1234
  {
1173
1235
  "id": "Credo_warning_unsafe_exec",
1174
1236
  "category": "Security",
@@ -1223,6 +1285,15 @@
1223
1285
  "languages": ["Elixir"],
1224
1286
  "parameters": []
1225
1287
  },
1288
+ {
1289
+ "id": "Credo_warning_unused_map_operation",
1290
+ "category": "ErrorProne",
1291
+ "severityLevel": "High",
1292
+ "title": "Avoid unused Map operations",
1293
+ "enabled": true,
1294
+ "languages": ["Elixir"],
1295
+ "parameters": []
1296
+ },
1226
1297
  {
1227
1298
  "id": "Credo_warning_unused_path_operation",
1228
1299
  "category": "ErrorProne",
@@ -1260,16 +1331,16 @@
1260
1331
  "parameters": []
1261
1332
  },
1262
1333
  {
1263
- "id": "Credo_warning_wrong_test_file_extension",
1264
- "category": "ErrorProne",
1265
- "severityLevel": "High",
1266
- "title": "Avoid Wrong Test File Extension",
1334
+ "id": "Credo_warning_wrong_test_filename",
1335
+ "category": "BestPractice",
1336
+ "severityLevel": "Warning",
1337
+ "title": "Ensure test files are named with _test.exs",
1267
1338
  "enabled": true,
1268
1339
  "languages": ["Elixir"],
1269
1340
  "parameters": [
1270
1341
  {
1271
1342
  "name": "files",
1272
- "default": "{\"included\":[\"test/**/*_test.ex\",\"apps/**/test/**/*_test.ex\"]}"
1343
+ "default": "{\"included\":[\"test/\"],\"excluded\":[\"test/**/*_test.exs\",\"apps/**/test/**/*_test.exs\"]}"
1273
1344
  }
1274
1345
  ]
1275
1346
  }