@codacy/tools-unsupported-tools 0.11.4 → 0.13.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/README.md +13 -4
- package/dist/index.js +23 -36
- package/package.json +2 -2
- package/dist/patterns/dartanalyzer.json +0 -10400
package/README.md
CHANGED
|
@@ -43,7 +43,8 @@ apart from real adapters.
|
|
|
43
43
|
|
|
44
44
|
Several cloud-only tools ship framework-specific patterns (PHPCS → CakePHP/WordPress/Drupal/Magento/
|
|
45
45
|
Symfony; dartanalyzer → Flutter/Angular; SonarCSharp → ASP.NET Core/Entity Framework/xUnit/…;
|
|
46
|
-
CodeNarc → Grails/Spock
|
|
46
|
+
CodeNarc → Grails/Spock/…; Codacy ScalaMeta Pro → Play Framework).
|
|
47
|
+
`src/framework-mappings.json` maps **tool ID → `FrameworkMappings`** so
|
|
47
48
|
`init --auto` can include those patterns only when the framework is actually detected (and exclude
|
|
48
49
|
them otherwise), exactly like supported tools.
|
|
49
50
|
|
|
@@ -52,11 +53,19 @@ them otherwise), exactly like supported tools.
|
|
|
52
53
|
`frameworkMappings` at load time.
|
|
53
54
|
- Choose the mechanism per tool from its pattern shape: `prefixes` when pattern IDs are namespaced by
|
|
54
55
|
framework (e.g. `PHPCS_CakePHP_`), `tags` otherwise (e.g. `flutter`, `aspnetcore`, `grails`).
|
|
55
|
-
- Each **key must
|
|
56
|
-
|
|
57
|
-
|
|
56
|
+
- Each **key must be a `DEPENDENCY_ENTITIES` key** (`packages/tooling/src/dependency-entities.ts`) —
|
|
57
|
+
the stable slug, not the display name — since that is what auto-init matches against. Display names
|
|
58
|
+
are not unique (`angular` is Angular 2+, `angular-dart` is AngularDart), so the key is what keeps
|
|
59
|
+
a Dart tool's patterns from gating on an npm dependency. If discovery cannot detect the framework
|
|
60
|
+
yet, add a telltale to the right ecosystem module in `packages/runner/src/discover/ecosystems/`.
|
|
58
61
|
- `test/framework-mappings.test.ts` enforces that every key maps to a real tool, the merge applied,
|
|
59
62
|
and every prefix/tag still matches ≥1 committed pattern (guards against drift after regeneration).
|
|
63
|
+
- **Codacy ScalaMeta Pro**: its six `Custom_Scala_Play*` patterns are all default-on and read Play's
|
|
64
|
+
request/header API, so before being mapped they fired in every Scala repo. `play-framework` is
|
|
65
|
+
detected from the `sbt-plugin` coordinate `addSbtPlugin` declares and from the `conf/routes`
|
|
66
|
+
layout — Play is declared as an sbt _plugin_, which is why the telltale keys on `group:artifact`.
|
|
67
|
+
Its other 80 patterns carry no tags at all and are genuinely general Scala rules, so they stay
|
|
68
|
+
universal.
|
|
60
69
|
|
|
61
70
|
## Regenerating the manifest
|
|
62
71
|
|
package/dist/index.js
CHANGED
|
@@ -99,18 +99,6 @@ var descriptors_default = [
|
|
|
99
99
|
uuid: "68feeeae-4432-41aa-bee0-95d979c930de",
|
|
100
100
|
unsupported: true
|
|
101
101
|
},
|
|
102
|
-
{
|
|
103
|
-
id: "dartanalyzer",
|
|
104
|
-
displayName: "dartanalyzer",
|
|
105
|
-
preferredVersion: "3.9.3",
|
|
106
|
-
languages: ["Dart"],
|
|
107
|
-
filePatterns: ["*"],
|
|
108
|
-
supportedOS: ["linux", "darwin", "win32"],
|
|
109
|
-
supportedArch: ["x64", "arm64"],
|
|
110
|
-
supportedRunners: ["container"],
|
|
111
|
-
uuid: "d203d615-6cf1-41f9-be5f-e2f660f7850f",
|
|
112
|
-
unsupported: true
|
|
113
|
-
},
|
|
114
102
|
{
|
|
115
103
|
id: "PHPCS",
|
|
116
104
|
displayName: "PHP_CodeSniffer",
|
|
@@ -200,35 +188,34 @@ var descriptors_default = [
|
|
|
200
188
|
// src/framework-mappings.json
|
|
201
189
|
var framework_mappings_default = {
|
|
202
190
|
PHPCS: {
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
},
|
|
207
|
-
dartanalyzer: {
|
|
208
|
-
Flutter: { tags: ["flutter"] },
|
|
209
|
-
Angular: { tags: ["angular"] }
|
|
191
|
+
cakephp: { prefixes: ["PHPCS_CakePHP_"] },
|
|
192
|
+
drupal: { prefixes: ["PHPCS_Drupal_"] },
|
|
193
|
+
symfony: { prefixes: ["PHPCS_Symfony_"] }
|
|
210
194
|
},
|
|
211
195
|
SonarCSharp: {
|
|
212
|
-
"
|
|
213
|
-
|
|
214
|
-
"
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
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"] },
|
|
224
208
|
log4net: { tags: ["log4net", "apachelog4net"] }
|
|
225
209
|
},
|
|
210
|
+
"codacy-scalameta-pro": {
|
|
211
|
+
"play-framework": { prefixes: ["Custom_Scala_Play"] }
|
|
212
|
+
},
|
|
226
213
|
CodeNarc: {
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
214
|
+
grails: { tags: ["grails"] },
|
|
215
|
+
"grails-gorm": { tags: ["gorm"] },
|
|
216
|
+
spock: { tags: ["spock"] },
|
|
217
|
+
jenkins: { tags: ["jenkins", "jenkinspipeline"] },
|
|
218
|
+
junit: { tags: ["junit"] }
|
|
232
219
|
}
|
|
233
220
|
};
|
|
234
221
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codacy/tools-unsupported-tools",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.13.0",
|
|
4
4
|
"description": "Generated manifest of Codacy Cloud tools without a local analyzer (descriptors + patterns)",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"dist"
|
|
9
9
|
],
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@codacy/tooling": "0.
|
|
11
|
+
"@codacy/tooling": "0.20.0"
|
|
12
12
|
},
|
|
13
13
|
"license": "MIT",
|
|
14
14
|
"author": "Codacy <support@codacy.com> (https://www.codacy.com)",
|