@docker-doctor/cli 0.6.1 → 0.7.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/cli.cjs +2 -2
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.mjs +2 -2
- package/dist/cli.mjs.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{src-DiEWLJ6g.mjs → src-D2DWrv5B.mjs} +13 -9
- package/dist/{src-DiEWLJ6g.mjs.map → src-D2DWrv5B.mjs.map} +1 -1
- package/dist/{src-C7XK6Kp-.cjs → src-DiT93yVt.cjs} +13 -9
- package/dist/{src-C7XK6Kp-.cjs.map → src-DiT93yVt.cjs.map} +1 -1
- package/package.json +1 -1
package/dist/cli.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { a as runDockerfileRules, c as createComposeLocator, d as discoverProject, f as version, i as runComposeRules, l as parseCompose, n as calculateScore, o as allRules, r as loadConfig, s as findRule, t as toJsonReport, u as parseDockerfile } from "./src-
|
|
2
|
+
import { a as runDockerfileRules, c as createComposeLocator, d as discoverProject, f as version, i as runComposeRules, l as parseCompose, n as calculateScore, o as allRules, r as loadConfig, s as findRule, t as toJsonReport, u as parseDockerfile } from "./src-D2DWrv5B.mjs";
|
|
3
3
|
import fs from "node:fs/promises";
|
|
4
4
|
import path from "node:path";
|
|
5
5
|
import os from "node:os";
|
|
@@ -1411,7 +1411,7 @@ program.argument("[dir]", "directory to scan", ".").option("-v, --verbose", "sho
|
|
|
1411
1411
|
];
|
|
1412
1412
|
const scannedFileCount = project.dockerfiles.length + project.composeFiles.length;
|
|
1413
1413
|
const { diagnostics, failures } = await runRulesEngine(rootDir, project, config.rules, config.categories, projectFilesList, fileContents, options, setStatus);
|
|
1414
|
-
const { score, label } = calculateScore(diagnostics);
|
|
1414
|
+
const { score, label } = calculateScore(diagnostics, scannedFileCount - failures.length);
|
|
1415
1415
|
const duration = ((Date.now() - startTime) / 1e3).toFixed(1);
|
|
1416
1416
|
const concurrency = os.cpus().length;
|
|
1417
1417
|
if (spinnerInterval !== null) {
|