@docker-doctor/cli 0.4.1 → 0.4.3
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 +43 -1
- package/dist/cli.cjs +125 -55
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.mjs +125 -55
- package/dist/cli.mjs.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +3 -3
- package/dist/index.d.mts +3 -3
- package/dist/index.mjs +1 -1
- package/dist/{src-DOPSHVJr.cjs → src-ILbJuJmE.cjs} +237 -123
- package/dist/src-ILbJuJmE.cjs.map +1 -0
- package/dist/{src-DHveWSuN.mjs → src-TK9DRoRo.mjs} +237 -123
- package/dist/src-TK9DRoRo.mjs.map +1 -0
- package/package.json +4 -1
- package/dist/src-DHveWSuN.mjs.map +0 -1
- package/dist/src-DOPSHVJr.cjs.map +0 -1
package/dist/index.d.mts
CHANGED
|
@@ -47,10 +47,10 @@ declare const parseDockerfile: (content: string) => DockerfileInstruction[];
|
|
|
47
47
|
declare const parseCompose: (content: string, filepath: string) => unknown;
|
|
48
48
|
//#endregion
|
|
49
49
|
//#region ../core/src/runners/dockerfile-runner.d.ts
|
|
50
|
-
declare const runDockerfileRules: (instructions: DockerfileInstruction[], file: string, projectFiles: string[], rulesConfig?: Record<string, RuleSeverity>) => Diagnostic[];
|
|
50
|
+
declare const runDockerfileRules: (instructions: DockerfileInstruction[], file: string, projectFiles: string[], rulesConfig?: Record<string, RuleSeverity>, categoriesConfig?: Record<string, RuleSeverity>) => Diagnostic[];
|
|
51
51
|
//#endregion
|
|
52
52
|
//#region ../core/src/runners/compose-runner.d.ts
|
|
53
|
-
declare const runComposeRules: (composeContent: unknown, file: string, rulesConfig?: Record<string, RuleSeverity>) => Diagnostic[];
|
|
53
|
+
declare const runComposeRules: (composeContent: unknown, file: string, rulesConfig?: Record<string, RuleSeverity>, categoriesConfig?: Record<string, RuleSeverity>) => Diagnostic[];
|
|
54
54
|
//#endregion
|
|
55
55
|
//#region ../core/src/rules/index.d.ts
|
|
56
56
|
declare const allRules: RuleDefinition[];
|
|
@@ -60,7 +60,7 @@ declare const findRule: (key: string) => RuleDefinition | undefined;
|
|
|
60
60
|
declare const defineConfig: (config: DockerDoctorConfig) => DockerDoctorConfig;
|
|
61
61
|
//#endregion
|
|
62
62
|
//#region ../core/src/config/loader.d.ts
|
|
63
|
-
declare const loadConfig: (rootDir: string, customPath?: string) => Promise<DockerDoctorConfig>;
|
|
63
|
+
declare const loadConfig: (rootDir: string, customPath?: string, onWarning?: (message: string) => void) => Promise<DockerDoctorConfig>;
|
|
64
64
|
//#endregion
|
|
65
65
|
//#region ../core/src/scoring.d.ts
|
|
66
66
|
declare const calculateScore: (diagnostics: Diagnostic[]) => {
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { a as runDockerfileRules, c as parseCompose, d as version$1, i as runComposeRules, l as parseDockerfile, n as calculateScore, o as allRules, r as loadConfig, s as findRule, t as toJsonReport, u as discoverProject } from "./src-
|
|
2
|
+
import { a as runDockerfileRules, c as parseCompose, d as version$1, i as runComposeRules, l as parseDockerfile, n as calculateScore, o as allRules, r as loadConfig, s as findRule, t as toJsonReport, u as discoverProject } from "./src-TK9DRoRo.mjs";
|
|
3
3
|
|
|
4
4
|
//#region ../core/src/config/define-config.ts
|
|
5
5
|
const defineConfig = (config) => config;
|