dependency-cruiser 10.3.1-beta-1 → 10.3.1-beta-2
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/package.json
CHANGED
|
@@ -1,16 +1,18 @@
|
|
|
1
|
-
const _difference = require("lodash/difference");
|
|
2
1
|
const _uniqWith = require("lodash/uniqWith");
|
|
3
2
|
|
|
4
3
|
function violationIsEqual(pLeftViolation, pRightViolation) {
|
|
4
|
+
let lReturnValue = false;
|
|
5
5
|
if (
|
|
6
6
|
pLeftViolation.rule.name === pRightViolation.rule.name &&
|
|
7
7
|
pLeftViolation.cycle
|
|
8
8
|
) {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
lReturnValue =
|
|
10
|
+
pLeftViolation.cycle.length === pRightViolation.cycle.length &&
|
|
11
|
+
pLeftViolation.cycle.every((pModuleName) =>
|
|
12
|
+
pRightViolation.cycle.includes(pModuleName)
|
|
13
|
+
);
|
|
12
14
|
}
|
|
13
|
-
return
|
|
15
|
+
return lReturnValue;
|
|
14
16
|
}
|
|
15
17
|
|
|
16
18
|
module.exports = function deDuplicateViolations(pViolations) {
|
package/src/meta.js
CHANGED
|
@@ -172,6 +172,7 @@ module.exports = {
|
|
|
172
172
|
error: { type: "number" },
|
|
173
173
|
warn: { type: "number" },
|
|
174
174
|
info: { type: "number" },
|
|
175
|
+
ignore: { type: "number" },
|
|
175
176
|
totalCruised: { type: "number" },
|
|
176
177
|
totalDependenciesCruised: { type: "number" },
|
|
177
178
|
ruleSetUsed: { $ref: "#/definitions/RuleSetType" },
|
package/types/cruise-result.d.ts
CHANGED
|
@@ -271,6 +271,10 @@ export interface ISummary {
|
|
|
271
271
|
* the number of errors in the dependencies
|
|
272
272
|
*/
|
|
273
273
|
error: number;
|
|
274
|
+
/**
|
|
275
|
+
* the number of ignored notices in the dependencies
|
|
276
|
+
*/
|
|
277
|
+
ignore: number;
|
|
274
278
|
/**
|
|
275
279
|
* the number of informational level notices in the dependencies
|
|
276
280
|
*/
|