dependency-cruiser 13.1.0-beta-2 → 13.1.0-beta-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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dependency-cruiser",
3
- "version": "13.1.0-beta-2",
3
+ "version": "13.1.0-beta-3",
4
4
  "description": "Validate and visualize dependencies. With your rules. JavaScript, TypeScript, CoffeeScript. ES6, CommonJS, AMD.",
5
5
  "keywords": [
6
6
  "static analysis",
package/src/meta.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /* generated - don't edit */
2
2
 
3
3
  module.exports = {
4
- version: "13.1.0-beta-2",
4
+ version: "13.1.0-beta-3",
5
5
  engines: {
6
6
  node: "^16.14||>=18",
7
7
  },
@@ -5,7 +5,7 @@ import {
5
5
  } from "./utl/index.mjs";
6
6
 
7
7
  const SEVERITY2VSO_TYPE = new Map([
8
- // "error" | "warn" | "info" | "ignore
8
+ // "error" | "warn" | "info" | "ignore"
9
9
  ["error", "error"],
10
10
  ["warn", "warning"],
11
11
  // azure devops doesn't seem to understand 'info'. We still want to
@@ -26,7 +26,7 @@ function formatSeverity(pSeverity) {
26
26
  * @returns {string}
27
27
  */
28
28
  function formatModuleViolation(pViolation) {
29
- return `${pViolation.rule.name}: ${pViolation.from}`;
29
+ return pViolation.from;
30
30
  }
31
31
 
32
32
  /**
@@ -35,7 +35,7 @@ function formatModuleViolation(pViolation) {
35
35
  * @returns {string}
36
36
  */
37
37
  function formatDependencyViolation(pViolation) {
38
- return `${pViolation.rule.name}: ${pViolation.from} -> ${pViolation.to}`;
38
+ return `${pViolation.from} -> ${pViolation.to}`;
39
39
  }
40
40
 
41
41
  /**
@@ -43,9 +43,7 @@ function formatDependencyViolation(pViolation) {
43
43
  * @returns {string}
44
44
  */
45
45
  function formatCycleViolation(pViolation) {
46
- return `${pViolation.rule.name}: ${
47
- pViolation.from
48
- } -> ${pViolation.cycle.join(" -> ")}`;
46
+ return `${pViolation.from} -> ${pViolation.cycle.join(" -> ")}`;
49
47
  }
50
48
 
51
49
  /**
@@ -53,9 +51,9 @@ function formatCycleViolation(pViolation) {
53
51
  * @returns {string}
54
52
  */
55
53
  function formatReachabilityViolation(pViolation) {
56
- return `${pViolation.rule.name}: ${pViolation.from} -> ${
57
- pViolation.to
58
- } (via ${pViolation.via.join(" -> ")})`;
54
+ return `${pViolation.from} -> ${pViolation.to} (via ${pViolation.via.join(
55
+ " -> "
56
+ )})`;
59
57
  }
60
58
 
61
59
  /**
@@ -63,7 +61,7 @@ function formatReachabilityViolation(pViolation) {
63
61
  * @returns {string}
64
62
  */
65
63
  function formatInstabilityViolation(pViolation) {
66
- return `${pViolation.rule.name}: ${pViolation.from} -> ${
64
+ return `${pViolation.from} -> ${
67
65
  pViolation.to
68
66
  } (instability: ${formatPercentage(
69
67
  pViolation.metrics.from.instability
@@ -89,7 +87,9 @@ function formatViolation(pViolation) {
89
87
  );
90
88
  return `##vso[task.logissue type=${formatSeverity(
91
89
  pViolation.rule.severity
92
- )};sourcepath=${pViolation.from}]${lFormattedViolators}${EOL}`;
90
+ )};sourcepath=${pViolation.from};code=${
91
+ pViolation.rule.name
92
+ };]${lFormattedViolators}${EOL}`;
93
93
  }
94
94
 
95
95
  /**