@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/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-DHveWSuN.mjs";
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;