@docker-doctor/cli 0.5.2 → 0.6.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.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
3
- const require_src = require('./src-D3jzc3GX.cjs');
3
+ const require_src = require('./src-BpAv-H0Z.cjs');
4
4
 
5
5
  //#region ../core/src/config/define-config.ts
6
6
  const defineConfig = (config) => config;
package/dist/index.d.cts CHANGED
@@ -48,6 +48,7 @@ interface DockerDoctorConfig {
48
48
  //#region ../core/src/project-info/discover.d.ts
49
49
  export declare const discoverProject: (rootDir: string, options?: {
50
50
  ignoreFiles?: readonly string[];
51
+ onSkippedDirectory?: (relativeDir: string) => void;
51
52
  }) => Promise<ProjectInfo>;
52
53
  //#endregion
53
54
  //#region ../core/src/parsers/dockerfile-parser.d.ts
@@ -79,6 +80,10 @@ export declare const calculateScore: (diagnostics: Diagnostic[]) => {
79
80
  };
80
81
  //#endregion
81
82
  //#region ../core/src/report.d.ts
83
+ interface ReportFailure {
84
+ file: string;
85
+ message: string;
86
+ }
82
87
  interface JsonReport {
83
88
  diagnostics: {
84
89
  category: RuleCategory;
@@ -90,13 +95,14 @@ interface JsonReport {
90
95
  rule: string;
91
96
  severity: "error" | "warning" | "info";
92
97
  }[];
98
+ failures: ReportFailure[];
93
99
  label: string;
94
100
  project: ProjectInfo;
95
101
  schemaVersion: number;
96
102
  score: number;
97
103
  timestamp: string;
98
104
  }
99
- export declare const toJsonReport: (diagnostics: Diagnostic[], score: number, label: string, project: ProjectInfo) => JsonReport;
105
+ export declare const toJsonReport: (diagnostics: Diagnostic[], score: number, label: string, project: ProjectInfo, failures?: ReportFailure[]) => JsonReport;
100
106
  //#endregion
101
107
  //#region src/index.d.ts
102
108
  export declare const version: string;
package/dist/index.d.mts CHANGED
@@ -48,6 +48,7 @@ interface DockerDoctorConfig {
48
48
  //#region ../core/src/project-info/discover.d.ts
49
49
  export declare const discoverProject: (rootDir: string, options?: {
50
50
  ignoreFiles?: readonly string[];
51
+ onSkippedDirectory?: (relativeDir: string) => void;
51
52
  }) => Promise<ProjectInfo>;
52
53
  //#endregion
53
54
  //#region ../core/src/parsers/dockerfile-parser.d.ts
@@ -79,6 +80,10 @@ export declare const calculateScore: (diagnostics: Diagnostic[]) => {
79
80
  };
80
81
  //#endregion
81
82
  //#region ../core/src/report.d.ts
83
+ interface ReportFailure {
84
+ file: string;
85
+ message: string;
86
+ }
82
87
  interface JsonReport {
83
88
  diagnostics: {
84
89
  category: RuleCategory;
@@ -90,13 +95,14 @@ interface JsonReport {
90
95
  rule: string;
91
96
  severity: "error" | "warning" | "info";
92
97
  }[];
98
+ failures: ReportFailure[];
93
99
  label: string;
94
100
  project: ProjectInfo;
95
101
  schemaVersion: number;
96
102
  score: number;
97
103
  timestamp: string;
98
104
  }
99
- export declare const toJsonReport: (diagnostics: Diagnostic[], score: number, label: string, project: ProjectInfo) => JsonReport;
105
+ export declare const toJsonReport: (diagnostics: Diagnostic[], score: number, label: string, project: ProjectInfo, failures?: ReportFailure[]) => JsonReport;
100
106
  //#endregion
101
107
  //#region src/index.d.ts
102
108
  export declare const version: string;
package/dist/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { a as runDockerfileRules, d as discoverProject, f as version$1, 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-BOGzkp17.mjs";
2
+ import { a as runDockerfileRules, d as discoverProject, f as version$1, 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-BLeXr_hR.mjs";
3
3
 
4
4
  //#region ../core/src/config/define-config.ts
5
5
  const defineConfig = (config) => config;