@codacy/tools-dartanalyzer-3 0.23.1 → 0.25.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
@@ -11908,6 +11908,7 @@ var pattern_mappings_default = {
11908
11908
  // src/metadata.ts
11909
11909
  var descriptor = {
11910
11910
  id: "dartanalyzer",
11911
+ shortName: "dartanalyzer",
11911
11912
  displayName: "dartanalyzer",
11912
11913
  preferredVersion: "3.12.2",
11913
11914
  languages: ["Dart"],
@@ -12041,6 +12042,7 @@ function configPaths(ctx) {
12041
12042
  };
12042
12043
  }
12043
12044
  async function recoverStaleConfig(ctx) {
12045
+ if (ctx.runner === "container") return;
12044
12046
  const { root, backup } = configPaths(ctx);
12045
12047
  if (!isGeneratedConfig(await readFileOrNull(root))) return;
12046
12048
  ctx.logger.warn("Found a leftover generated analysis_options.yaml \u2014 restoring", {
@@ -12056,6 +12058,9 @@ async function recoverStaleConfig(ctx) {
12056
12058
  }
12057
12059
  }
12058
12060
  async function swapInGeneratedConfig(ctx, configContent) {
12061
+ if (ctx.runner === "container") {
12062
+ throw new Error("the container runner treats the source directory as read-only input");
12063
+ }
12059
12064
  const { root, generated, backup } = configPaths(ctx);
12060
12065
  await import_promises.default.mkdir(ctx.generatedConfigDir, { recursive: true });
12061
12066
  await import_promises.default.writeFile(generated, configContent, "utf-8");
package/dist/metadata.js CHANGED
@@ -33,6 +33,7 @@ var pattern_mappings_default = {
33
33
  // src/metadata.ts
34
34
  var descriptor = {
35
35
  id: "dartanalyzer",
36
+ shortName: "dartanalyzer",
36
37
  displayName: "dartanalyzer",
37
38
  preferredVersion: "3.12.2",
38
39
  languages: ["Dart"],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codacy/tools-dartanalyzer-3",
3
- "version": "0.23.1",
3
+ "version": "0.25.0",
4
4
  "description": "dartanalyzer adapter — CLI-mode Dart analyzer (dart analyze)",
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.23.1"
11
+ "@codacy/tooling": "0.25.0"
12
12
  },
13
13
  "license": "MIT",
14
14
  "author": "Codacy <support@codacy.com> (https://www.codacy.com)",