@codacy/tools-unsupported-tools 0.15.1 → 0.24.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 CHANGED
@@ -54,9 +54,9 @@ them otherwise), exactly like supported tools.
54
54
  - Choose the mechanism per tool from its pattern shape: `prefixes` when pattern IDs are namespaced by
55
55
  framework (e.g. `PHPCS_CakePHP_`), `tags` otherwise (e.g. `flutter`, `aspnetcore`, `grails`).
56
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
57
+ the stable slug, not the display name — since that is what auto-init matches against. Labels are
58
+ copy and get reworded (`angular` is Angular 2+, `angular-dart` is AngularDart), so the key is what
59
+ keeps a Dart tool's patterns from gating on an npm dependency. If discovery cannot detect the framework
60
60
  yet, add a telltale to the right ecosystem module in `packages/runner/src/discover/ecosystems/`.
61
61
  - `test/framework-mappings.test.ts` enforces that every key maps to a real tool, the merge applied,
62
62
  and every prefix/tag still matches ≥1 committed pattern (guards against drift after regeneration).
package/dist/index.d.ts CHANGED
@@ -9,6 +9,11 @@ import { PatternEntry, AdapterDescriptor } from '@codacy/tooling';
9
9
  * - `descriptors.json` — one `AdapterDescriptor` per tool (`unsupported: true`).
10
10
  * - `patterns/<toolId>.json` — that tool's full pattern set.
11
11
  *
12
+ * Both are pure Codacy-API artifacts, overwritten on every regeneration, so the
13
+ * two things that cannot be derived from the API — framework mappings and
14
+ * `alternativeGroup` — live in hand-curated sibling files that are merged on top
15
+ * here (`framework-mappings.json`, `descriptor-overrides.json`).
16
+ *
12
17
  * Descriptors are tiny and imported eagerly so CLI startup can register every
13
18
  * cloud-only tool. Patterns are large and read lazily from disk only when a
14
19
  * flow actually needs them (currently `init --auto`).
@@ -17,7 +22,9 @@ import { PatternEntry, AdapterDescriptor } from '@codacy/tooling';
17
22
  /**
18
23
  * Descriptors for every tracked cloud-only tool. Each has `unsupported: true`.
19
24
  * Tools with curated framework mappings get them attached here so auto-init can
20
- * gate their framework-specific patterns on detected frameworks/libraries.
25
+ * gate their framework-specific patterns on detected frameworks/libraries, and
26
+ * curated descriptor overrides (see above) are applied on top of the generated
27
+ * fields.
21
28
  */
22
29
  declare const unsupportedDescriptors: AdapterDescriptor[];
23
30
  /**
package/dist/index.js CHANGED
@@ -41,6 +41,7 @@ var import_path = __toESM(require("path"));
41
41
  var descriptors_default = [
42
42
  {
43
43
  id: "ameba",
44
+ shortName: "ameba",
44
45
  displayName: "Ameba",
45
46
  preferredVersion: "1.6.4",
46
47
  languages: ["Crystal"],
@@ -53,6 +54,7 @@ var descriptors_default = [
53
54
  },
54
55
  {
55
56
  id: "codacy-scalameta-pro",
57
+ shortName: "codacy-scalameta-pro",
56
58
  displayName: "Codacy ScalaMeta Pro",
57
59
  preferredVersion: "",
58
60
  languages: ["Scala"],
@@ -65,6 +67,7 @@ var descriptors_default = [
65
67
  },
66
68
  {
67
69
  id: "CodeNarc",
70
+ shortName: "codenarc",
68
71
  displayName: "CodeNarc",
69
72
  preferredVersion: "3.6.0",
70
73
  languages: ["Groovy"],
@@ -77,6 +80,7 @@ var descriptors_default = [
77
80
  },
78
81
  {
79
82
  id: "coffeelint",
83
+ shortName: "coffeelint",
80
84
  displayName: "CoffeeLint",
81
85
  preferredVersion: "5.2.11",
82
86
  languages: ["CoffeeScript"],
@@ -89,6 +93,7 @@ var descriptors_default = [
89
93
  },
90
94
  {
91
95
  id: "Credo",
96
+ shortName: "credo",
92
97
  displayName: "Credo",
93
98
  preferredVersion: "1.7.19",
94
99
  languages: ["Elixir"],
@@ -99,8 +104,22 @@ var descriptors_default = [
99
104
  uuid: "68feeeae-4432-41aa-bee0-95d979c930de",
100
105
  unsupported: true
101
106
  },
107
+ {
108
+ id: "Oxlint",
109
+ shortName: "oxlint",
110
+ displayName: "Oxlint",
111
+ preferredVersion: "1.80.0",
112
+ languages: ["Javascript", "TypeScript"],
113
+ filePatterns: ["*"],
114
+ supportedOS: ["linux", "darwin", "win32"],
115
+ supportedArch: ["x64", "arm64"],
116
+ supportedRunners: ["container"],
117
+ uuid: "545e3ab8-50ed-4f71-88b7-2caebcfa147a",
118
+ unsupported: true
119
+ },
102
120
  {
103
121
  id: "PHPCS",
122
+ shortName: "phpcs",
104
123
  displayName: "PHP_CodeSniffer",
105
124
  preferredVersion: "4.0.1",
106
125
  languages: ["PHP"],
@@ -113,6 +132,7 @@ var descriptors_default = [
113
132
  },
114
133
  {
115
134
  id: "PHPCSFIXER",
135
+ shortName: "phpcsfixer",
116
136
  displayName: "PHP CS Fixer",
117
137
  preferredVersion: "3.95.17",
118
138
  languages: ["PHP"],
@@ -125,6 +145,7 @@ var descriptors_default = [
125
145
  },
126
146
  {
127
147
  id: "phpmd",
148
+ shortName: "phpmd",
128
149
  displayName: "PHP Mess Detector",
129
150
  preferredVersion: "2.14.1",
130
151
  languages: ["PHP"],
@@ -137,6 +158,7 @@ var descriptors_default = [
137
158
  },
138
159
  {
139
160
  id: "psscriptanalyzer",
161
+ shortName: "psscriptanalyzer",
140
162
  displayName: "PSScriptAnalyzer",
141
163
  preferredVersion: "1.25.0",
142
164
  languages: ["Powershell"],
@@ -149,6 +171,7 @@ var descriptors_default = [
149
171
  },
150
172
  {
151
173
  id: "remark-lint",
174
+ shortName: "remark-lint",
152
175
  displayName: "remark-lint",
153
176
  preferredVersion: "10.0.1",
154
177
  languages: ["Markdown"],
@@ -161,6 +184,7 @@ var descriptors_default = [
161
184
  },
162
185
  {
163
186
  id: "SonarCSharp",
187
+ shortName: "sonarcsharp",
164
188
  displayName: "SonarC#",
165
189
  preferredVersion: "9.32",
166
190
  languages: ["CSharp"],
@@ -173,6 +197,7 @@ var descriptors_default = [
173
197
  },
174
198
  {
175
199
  id: "SonarVisualBasic",
200
+ shortName: "sonarvb",
176
201
  displayName: "SonarVB",
177
202
  preferredVersion: "8.15",
178
203
  languages: ["VisualBasic"],
@@ -185,6 +210,7 @@ var descriptors_default = [
185
210
  },
186
211
  {
187
212
  id: "TSQLLint",
213
+ shortName: "tsqllint",
188
214
  displayName: "TSQLLint",
189
215
  preferredVersion: "1.16.0",
190
216
  languages: ["SQL", "TSQL"],
@@ -228,14 +254,33 @@ var framework_mappings_default = {
228
254
  spock: { tags: ["lib:spock"] },
229
255
  jenkins: { tags: ["tool:jenkins"] },
230
256
  junit: { tags: ["lib:junit"] }
257
+ },
258
+ Oxlint: {
259
+ react: { prefixes: ["Oxlint_react_", "Oxlint_react-perf_", "Oxlint_jsx-a11y_"] },
260
+ vue: { prefixes: ["Oxlint_vue_"] },
261
+ next: { prefixes: ["Oxlint_nextjs_"] },
262
+ jest: { prefixes: ["Oxlint_jest_"] },
263
+ vitest: { prefixes: ["Oxlint_vitest_"] },
264
+ "lang:TypeScript": { prefixes: ["Oxlint_typescript_"] }
231
265
  }
232
266
  };
233
267
 
268
+ // src/descriptor-overrides.json
269
+ var descriptor_overrides_default = {
270
+ Oxlint: { alternativeGroup: "ecmascript-lint" }
271
+ };
272
+
234
273
  // src/index.ts
235
274
  var frameworkMappingsByTool = framework_mappings_default;
275
+ var descriptorOverridesByTool = descriptor_overrides_default;
236
276
  var unsupportedDescriptors = descriptors_default.map((descriptor) => {
237
277
  const frameworkMappings = frameworkMappingsByTool[descriptor.id];
238
- return frameworkMappings ? { ...descriptor, frameworkMappings } : descriptor;
278
+ const overrides = descriptorOverridesByTool[descriptor.id];
279
+ return {
280
+ ...descriptor,
281
+ ...overrides,
282
+ ...frameworkMappings ? { frameworkMappings } : {}
283
+ };
239
284
  });
240
285
  var patternsCache = /* @__PURE__ */ new Map();
241
286
  function loadUnsupportedPatterns(toolId) {