dependency-cruiser 10.0.2 → 10.0.6
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/bin/depcruise-fmt.js +3 -3
- package/bin/dependency-cruise.js +3 -3
- package/bin/wrap-stream-in-html.js +1 -5
- package/package.json +32 -55
- package/src/cli/defaults.js +15 -0
- package/src/cli/format.js +0 -1
- package/src/cli/index.js +1 -1
- package/src/cli/init-config/config.js.template.js +1 -106
- package/src/cli/init-config/index.js +3 -2
- package/src/cli/init-config/normalize-init-options.js +2 -2
- package/src/cli/init-config/write-config.js +3 -2
- package/src/cli/init-config/write-run-scripts-to-manifest.js +1 -1
- package/src/cli/normalize-options.js +1 -1
- package/src/cli/tools/wrap-stream-in-html.js +25 -20
- package/src/cli/validate-node-environment.js +3 -3
- package/src/config-utl/extract-babel-config.js +2 -3
- package/src/config-utl/extract-ts-config.js +5 -7
- package/src/enrich/derive/reachable/index.js +2 -8
- package/src/extract/ast-extractors/extract-typescript-deps.js +4 -7
- package/src/extract/ast-extractors/swc-dependency-visitor.js +14 -11
- package/src/extract/parse/to-swc-ast.js +3 -4
- package/src/extract/parse/to-typescript-ast.js +3 -4
- package/src/extract/transpile/babel-wrap.js +2 -2
- package/src/extract/transpile/coffeescript-wrap.js +5 -4
- package/src/extract/transpile/livescript-wrap.js +5 -5
- package/src/extract/transpile/meta.js +1 -1
- package/src/extract/transpile/svelte-wrap.js +3 -1
- package/src/extract/transpile/typescript-wrap.js +3 -4
- package/src/extract/transpile/vue-template-wrap.js +3 -1
- package/src/main/index.js +1 -1
- package/src/main/options/defaults.js +10 -0
- package/src/main/options/normalize.js +1 -1
- package/src/main/rule-set/validate.js +1 -1
- package/src/meta.js +18 -0
- package/src/report/dot/default-theme.js +145 -0
- package/src/report/dot/dot.template.js +1 -199
- package/src/report/dot/theming.js +3 -3
- package/src/report/error-html/error-html.template.js +1 -132
- package/src/report/error-html/utl.js +1 -1
- package/src/report/html/html.template.js +1 -118
- package/src/schema/README.md +2 -2
- package/src/schema/configuration.schema.js +441 -0
- package/src/schema/cruise-result.schema.js +595 -0
- package/src/cli/defaults.json +0 -15
- package/src/main/options/defaults.json +0 -10
- package/src/report/dot/default-theme.json +0 -145
- package/src/schema/configuration.schema.json +0 -697
- package/src/schema/cruise-result.schema.json +0 -988
|
@@ -1,199 +1 @@
|
|
|
1
|
-
var Handlebars
|
|
2
|
-
templates['dot.template.hbs'] = template({"1":function(container,depth0,helpers,partials,data) {
|
|
3
|
-
var stack1, helper, lookupProperty = container.lookupProperty || function(parent, propertyName) {
|
|
4
|
-
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
5
|
-
return parent[propertyName];
|
|
6
|
-
}
|
|
7
|
-
return undefined
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
return ((stack1 = ((helper = (helper = lookupProperty(helpers,"graphAttrs") || (depth0 != null ? lookupProperty(depth0,"graphAttrs") : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === "function" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{"name":"graphAttrs","hash":{},"data":data,"loc":{"start":{"line":2,"column":22},"end":{"line":2,"column":38}}}) : helper))) != null ? stack1 : "");
|
|
11
|
-
},"3":function(container,depth0,helpers,partials,data) {
|
|
12
|
-
var stack1, helper, lookupProperty = container.lookupProperty || function(parent, propertyName) {
|
|
13
|
-
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
14
|
-
return parent[propertyName];
|
|
15
|
-
}
|
|
16
|
-
return undefined
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
return "node ["
|
|
20
|
-
+ ((stack1 = ((helper = (helper = lookupProperty(helpers,"nodeAttrs") || (depth0 != null ? lookupProperty(depth0,"nodeAttrs") : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === "function" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{"name":"nodeAttrs","hash":{},"data":data,"loc":{"start":{"line":3,"column":27},"end":{"line":3,"column":42}}}) : helper))) != null ? stack1 : "")
|
|
21
|
-
+ "]";
|
|
22
|
-
},"5":function(container,depth0,helpers,partials,data) {
|
|
23
|
-
var stack1, helper, lookupProperty = container.lookupProperty || function(parent, propertyName) {
|
|
24
|
-
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
25
|
-
return parent[propertyName];
|
|
26
|
-
}
|
|
27
|
-
return undefined
|
|
28
|
-
};
|
|
29
|
-
|
|
30
|
-
return "edge ["
|
|
31
|
-
+ ((stack1 = ((helper = (helper = lookupProperty(helpers,"edgeAttrs") || (depth0 != null ? lookupProperty(depth0,"edgeAttrs") : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === "function" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{"name":"edgeAttrs","hash":{},"data":data,"loc":{"start":{"line":4,"column":27},"end":{"line":4,"column":42}}}) : helper))) != null ? stack1 : "")
|
|
32
|
-
+ "]";
|
|
33
|
-
},"7":function(container,depth0,helpers,partials,data,blockParams,depths) {
|
|
34
|
-
var stack1, helper, options, alias1=depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty = container.lookupProperty || function(parent, propertyName) {
|
|
35
|
-
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
36
|
-
return parent[propertyName];
|
|
37
|
-
}
|
|
38
|
-
return undefined
|
|
39
|
-
}, buffer =
|
|
40
|
-
((stack1 = lookupProperty(helpers,"if").call(alias1,(depth0 != null ? lookupProperty(depth0,"folder") : depth0),{"name":"if","hash":{},"fn":container.program(8, data, 0, blockParams, depths),"inverse":container.program(20, data, 0, blockParams, depths),"data":data,"loc":{"start":{"line":7,"column":4},"end":{"line":12,"column":11}}})) != null ? stack1 : "");
|
|
41
|
-
stack1 = ((helper = (helper = lookupProperty(helpers,"dependencies") || (depth0 != null ? lookupProperty(depth0,"dependencies") : depth0)) != null ? helper : container.hooks.helperMissing),(options={"name":"dependencies","hash":{},"fn":container.program(22, data, 0, blockParams, depths),"inverse":container.noop,"data":data,"loc":{"start":{"line":13,"column":4},"end":{"line":15,"column":21}}}),(typeof helper === "function" ? helper.call(alias1,options) : helper));
|
|
42
|
-
if (!lookupProperty(helpers,"dependencies")) { stack1 = container.hooks.blockHelperMissing.call(depth0,stack1,options)}
|
|
43
|
-
if (stack1 != null) { buffer += stack1; }
|
|
44
|
-
return buffer;
|
|
45
|
-
},"8":function(container,depth0,helpers,partials,data,blockParams,depths) {
|
|
46
|
-
var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3="function", lookupProperty = container.lookupProperty || function(parent, propertyName) {
|
|
47
|
-
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
48
|
-
return parent[propertyName];
|
|
49
|
-
}
|
|
50
|
-
return undefined
|
|
51
|
-
};
|
|
52
|
-
|
|
53
|
-
return " "
|
|
54
|
-
+ ((stack1 = lookupProperty(helpers,"each").call(alias1,(depth0 != null ? lookupProperty(depth0,"path") : depth0),{"name":"each","hash":{},"fn":container.program(9, data, 0, blockParams, depths),"inverse":container.noop,"data":data,"loc":{"start":{"line":8,"column":4},"end":{"line":8,"column":201}}})) != null ? stack1 : "")
|
|
55
|
-
+ "\""
|
|
56
|
-
+ ((stack1 = ((helper = (helper = lookupProperty(helpers,"source") || (depth0 != null ? lookupProperty(depth0,"source") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"source","hash":{},"data":data,"loc":{"start":{"line":9,"column":9},"end":{"line":9,"column":21}}}) : helper))) != null ? stack1 : "")
|
|
57
|
-
+ "\" [label="
|
|
58
|
-
+ ((stack1 = ((helper = (helper = lookupProperty(helpers,"label") || (depth0 != null ? lookupProperty(depth0,"label") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"label","hash":{},"data":data,"loc":{"start":{"line":9,"column":30},"end":{"line":9,"column":41}}}) : helper))) != null ? stack1 : "")
|
|
59
|
-
+ " "
|
|
60
|
-
+ ((stack1 = lookupProperty(helpers,"if").call(alias1,(depth0 != null ? lookupProperty(depth0,"rule") : depth0),{"name":"if","hash":{},"fn":container.program(12, data, 0, blockParams, depths),"inverse":container.noop,"data":data,"loc":{"start":{"line":9,"column":42},"end":{"line":9,"column":87}}})) != null ? stack1 : "")
|
|
61
|
-
+ ((stack1 = lookupProperty(helpers,"if").call(alias1,(depth0 != null ? lookupProperty(depth0,"URL") : depth0),{"name":"if","hash":{},"fn":container.program(14, data, 0, blockParams, depths),"inverse":container.noop,"data":data,"loc":{"start":{"line":9,"column":87},"end":{"line":9,"column":121}}})) != null ? stack1 : "")
|
|
62
|
-
+ ((stack1 = lookupProperty(helpers,"if").call(alias1,(depth0 != null ? lookupProperty(depth0,"themeAttrs") : depth0),{"name":"if","hash":{},"fn":container.program(16, data, 0, blockParams, depths),"inverse":container.noop,"data":data,"loc":{"start":{"line":9,"column":121},"end":{"line":9,"column":162}}})) != null ? stack1 : "")
|
|
63
|
-
+ "]"
|
|
64
|
-
+ ((stack1 = lookupProperty(helpers,"each").call(alias1,(depth0 != null ? lookupProperty(depth0,"path") : depth0),{"name":"each","hash":{},"fn":container.program(18, data, 0, blockParams, depths),"inverse":container.noop,"data":data,"loc":{"start":{"line":9,"column":163},"end":{"line":9,"column":188}}})) != null ? stack1 : "")
|
|
65
|
-
+ "\n";
|
|
66
|
-
},"9":function(container,depth0,helpers,partials,data,blockParams,depths) {
|
|
67
|
-
var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3="function", lookupProperty = container.lookupProperty || function(parent, propertyName) {
|
|
68
|
-
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
69
|
-
return parent[propertyName];
|
|
70
|
-
}
|
|
71
|
-
return undefined
|
|
72
|
-
};
|
|
73
|
-
|
|
74
|
-
return "subgraph \"cluster_"
|
|
75
|
-
+ ((stack1 = ((helper = (helper = lookupProperty(helpers,"aggregateSnippet") || (depth0 != null ? lookupProperty(depth0,"aggregateSnippet") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"aggregateSnippet","hash":{},"data":data,"loc":{"start":{"line":8,"column":36},"end":{"line":8,"column":58}}}) : helper))) != null ? stack1 : "")
|
|
76
|
-
+ "\" {label=\""
|
|
77
|
-
+ ((stack1 = ((helper = (helper = lookupProperty(helpers,"snippet") || (depth0 != null ? lookupProperty(depth0,"snippet") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"snippet","hash":{},"data":data,"loc":{"start":{"line":8,"column":68},"end":{"line":8,"column":81}}}) : helper))) != null ? stack1 : "")
|
|
78
|
-
+ "\" "
|
|
79
|
-
+ ((stack1 = lookupProperty(helpers,"if").call(alias1,(depths[2] != null ? lookupProperty(depths[2],"clustersHaveOwnNode") : depths[2]),{"name":"if","hash":{},"fn":container.program(10, data, 0, blockParams, depths),"inverse":container.noop,"data":data,"loc":{"start":{"line":8,"column":83},"end":{"line":8,"column":191}}})) != null ? stack1 : "");
|
|
80
|
-
},"10":function(container,depth0,helpers,partials,data) {
|
|
81
|
-
var stack1, helper, lookupProperty = container.lookupProperty || function(parent, propertyName) {
|
|
82
|
-
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
83
|
-
return parent[propertyName];
|
|
84
|
-
}
|
|
85
|
-
return undefined
|
|
86
|
-
};
|
|
87
|
-
|
|
88
|
-
return "\""
|
|
89
|
-
+ ((stack1 = ((helper = (helper = lookupProperty(helpers,"aggregateSnippet") || (depth0 != null ? lookupProperty(depth0,"aggregateSnippet") : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === "function" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{"name":"aggregateSnippet","hash":{},"data":data,"loc":{"start":{"line":8,"column":117},"end":{"line":8,"column":139}}}) : helper))) != null ? stack1 : "")
|
|
90
|
-
+ "\" [width=\"0.05\" shape=\"point\" style=\"invis\"] ";
|
|
91
|
-
},"12":function(container,depth0,helpers,partials,data) {
|
|
92
|
-
var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {
|
|
93
|
-
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
94
|
-
return parent[propertyName];
|
|
95
|
-
}
|
|
96
|
-
return undefined
|
|
97
|
-
};
|
|
98
|
-
|
|
99
|
-
return "tooltip=\""
|
|
100
|
-
+ ((stack1 = container.lambda(((stack1 = (depth0 != null ? lookupProperty(depth0,"rule") : depth0)) != null ? lookupProperty(stack1,"name") : stack1), depth0)) != null ? stack1 : "")
|
|
101
|
-
+ "\" ";
|
|
102
|
-
},"14":function(container,depth0,helpers,partials,data) {
|
|
103
|
-
var stack1, helper, lookupProperty = container.lookupProperty || function(parent, propertyName) {
|
|
104
|
-
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
105
|
-
return parent[propertyName];
|
|
106
|
-
}
|
|
107
|
-
return undefined
|
|
108
|
-
};
|
|
109
|
-
|
|
110
|
-
return "URL=\""
|
|
111
|
-
+ ((stack1 = ((helper = (helper = lookupProperty(helpers,"URL") || (depth0 != null ? lookupProperty(depth0,"URL") : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === "function" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{"name":"URL","hash":{},"data":data,"loc":{"start":{"line":9,"column":103},"end":{"line":9,"column":112}}}) : helper))) != null ? stack1 : "")
|
|
112
|
-
+ "\" ";
|
|
113
|
-
},"16":function(container,depth0,helpers,partials,data) {
|
|
114
|
-
var stack1, helper, lookupProperty = container.lookupProperty || function(parent, propertyName) {
|
|
115
|
-
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
116
|
-
return parent[propertyName];
|
|
117
|
-
}
|
|
118
|
-
return undefined
|
|
119
|
-
};
|
|
120
|
-
|
|
121
|
-
return ((stack1 = ((helper = (helper = lookupProperty(helpers,"themeAttrs") || (depth0 != null ? lookupProperty(depth0,"themeAttrs") : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === "function" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{"name":"themeAttrs","hash":{},"data":data,"loc":{"start":{"line":9,"column":139},"end":{"line":9,"column":155}}}) : helper))) != null ? stack1 : "");
|
|
122
|
-
},"18":function(container,depth0,helpers,partials,data) {
|
|
123
|
-
return " }";
|
|
124
|
-
},"20":function(container,depth0,helpers,partials,data,blockParams,depths) {
|
|
125
|
-
var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3="function", lookupProperty = container.lookupProperty || function(parent, propertyName) {
|
|
126
|
-
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
127
|
-
return parent[propertyName];
|
|
128
|
-
}
|
|
129
|
-
return undefined
|
|
130
|
-
};
|
|
131
|
-
|
|
132
|
-
return " \""
|
|
133
|
-
+ ((stack1 = ((helper = (helper = lookupProperty(helpers,"source") || (depth0 != null ? lookupProperty(depth0,"source") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"source","hash":{},"data":data,"loc":{"start":{"line":11,"column":5},"end":{"line":11,"column":17}}}) : helper))) != null ? stack1 : "")
|
|
134
|
-
+ "\" [label="
|
|
135
|
-
+ ((stack1 = ((helper = (helper = lookupProperty(helpers,"label") || (depth0 != null ? lookupProperty(depth0,"label") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"label","hash":{},"data":data,"loc":{"start":{"line":11,"column":26},"end":{"line":11,"column":37}}}) : helper))) != null ? stack1 : "")
|
|
136
|
-
+ " "
|
|
137
|
-
+ ((stack1 = lookupProperty(helpers,"if").call(alias1,(depth0 != null ? lookupProperty(depth0,"rule") : depth0),{"name":"if","hash":{},"fn":container.program(12, data, 0, blockParams, depths),"inverse":container.noop,"data":data,"loc":{"start":{"line":11,"column":38},"end":{"line":11,"column":83}}})) != null ? stack1 : "")
|
|
138
|
-
+ ((stack1 = lookupProperty(helpers,"if").call(alias1,(depth0 != null ? lookupProperty(depth0,"URL") : depth0),{"name":"if","hash":{},"fn":container.program(14, data, 0, blockParams, depths),"inverse":container.noop,"data":data,"loc":{"start":{"line":11,"column":83},"end":{"line":11,"column":117}}})) != null ? stack1 : "")
|
|
139
|
-
+ ((stack1 = lookupProperty(helpers,"if").call(alias1,(depth0 != null ? lookupProperty(depth0,"themeAttrs") : depth0),{"name":"if","hash":{},"fn":container.program(16, data, 0, blockParams, depths),"inverse":container.noop,"data":data,"loc":{"start":{"line":11,"column":117},"end":{"line":11,"column":158}}})) != null ? stack1 : "")
|
|
140
|
-
+ "]\n";
|
|
141
|
-
},"22":function(container,depth0,helpers,partials,data,blockParams,depths) {
|
|
142
|
-
var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty = container.lookupProperty || function(parent, propertyName) {
|
|
143
|
-
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
144
|
-
return parent[propertyName];
|
|
145
|
-
}
|
|
146
|
-
return undefined
|
|
147
|
-
};
|
|
148
|
-
|
|
149
|
-
return " \""
|
|
150
|
-
+ ((stack1 = container.lambda((depths[1] != null ? lookupProperty(depths[1],"source") : depths[1]), depth0)) != null ? stack1 : "")
|
|
151
|
-
+ "\" -> \""
|
|
152
|
-
+ ((stack1 = ((helper = (helper = lookupProperty(helpers,"resolved") || (depth0 != null ? lookupProperty(depth0,"resolved") : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === "function" ? helper.call(alias1,{"name":"resolved","hash":{},"data":data,"loc":{"start":{"line":14,"column":26},"end":{"line":14,"column":40}}}) : helper))) != null ? stack1 : "")
|
|
153
|
-
+ "\""
|
|
154
|
-
+ ((stack1 = lookupProperty(helpers,"if").call(alias1,(depth0 != null ? lookupProperty(depth0,"hasExtraAttributes") : depth0),{"name":"if","hash":{},"fn":container.program(23, data, 0, blockParams, depths),"inverse":container.noop,"data":data,"loc":{"start":{"line":14,"column":41},"end":{"line":14,"column":193}}})) != null ? stack1 : "")
|
|
155
|
-
+ "\n";
|
|
156
|
-
},"23":function(container,depth0,helpers,partials,data,blockParams,depths) {
|
|
157
|
-
var stack1, alias1=depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty = container.lookupProperty || function(parent, propertyName) {
|
|
158
|
-
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
159
|
-
return parent[propertyName];
|
|
160
|
-
}
|
|
161
|
-
return undefined
|
|
162
|
-
};
|
|
163
|
-
|
|
164
|
-
return " ["
|
|
165
|
-
+ ((stack1 = lookupProperty(helpers,"if").call(alias1,((stack1 = (depth0 != null ? lookupProperty(depth0,"rule") : depth0)) != null ? lookupProperty(stack1,"name") : stack1),{"name":"if","hash":{},"fn":container.program(24, data, 0, blockParams, depths),"inverse":container.noop,"data":data,"loc":{"start":{"line":14,"column":69},"end":{"line":14,"column":144}}})) != null ? stack1 : "")
|
|
166
|
-
+ ((stack1 = lookupProperty(helpers,"if").call(alias1,(depth0 != null ? lookupProperty(depth0,"themeAttrs") : depth0),{"name":"if","hash":{},"fn":container.program(16, data, 0, blockParams, depths),"inverse":container.noop,"data":data,"loc":{"start":{"line":14,"column":144},"end":{"line":14,"column":185}}})) != null ? stack1 : "")
|
|
167
|
-
+ "]";
|
|
168
|
-
},"24":function(container,depth0,helpers,partials,data) {
|
|
169
|
-
var stack1, alias1=container.lambda, lookupProperty = container.lookupProperty || function(parent, propertyName) {
|
|
170
|
-
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
171
|
-
return parent[propertyName];
|
|
172
|
-
}
|
|
173
|
-
return undefined
|
|
174
|
-
};
|
|
175
|
-
|
|
176
|
-
return "xlabel=\""
|
|
177
|
-
+ ((stack1 = alias1(((stack1 = (depth0 != null ? lookupProperty(depth0,"rule") : depth0)) != null ? lookupProperty(stack1,"name") : stack1), depth0)) != null ? stack1 : "")
|
|
178
|
-
+ "\" tooltip=\""
|
|
179
|
-
+ ((stack1 = alias1(((stack1 = (depth0 != null ? lookupProperty(depth0,"rule") : depth0)) != null ? lookupProperty(stack1,"name") : stack1), depth0)) != null ? stack1 : "")
|
|
180
|
-
+ "\" ";
|
|
181
|
-
},"compiler":[8,">= 4.3.0"],"main":function(container,depth0,helpers,partials,data,blockParams,depths) {
|
|
182
|
-
var stack1, helper, options, alias1=depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty = container.lookupProperty || function(parent, propertyName) {
|
|
183
|
-
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
184
|
-
return parent[propertyName];
|
|
185
|
-
}
|
|
186
|
-
return undefined
|
|
187
|
-
}, buffer =
|
|
188
|
-
"strict digraph \"dependency-cruiser output\"{\n "
|
|
189
|
-
+ ((stack1 = lookupProperty(helpers,"if").call(alias1,(depth0 != null ? lookupProperty(depth0,"graphAttrs") : depth0),{"name":"if","hash":{},"fn":container.program(1, data, 0, blockParams, depths),"inverse":container.noop,"data":data,"loc":{"start":{"line":2,"column":4},"end":{"line":2,"column":45}}})) != null ? stack1 : "")
|
|
190
|
-
+ "\n "
|
|
191
|
-
+ ((stack1 = lookupProperty(helpers,"if").call(alias1,(depth0 != null ? lookupProperty(depth0,"nodeAttrs") : depth0),{"name":"if","hash":{},"fn":container.program(3, data, 0, blockParams, depths),"inverse":container.noop,"data":data,"loc":{"start":{"line":3,"column":4},"end":{"line":3,"column":50}}})) != null ? stack1 : "")
|
|
192
|
-
+ "\n "
|
|
193
|
-
+ ((stack1 = lookupProperty(helpers,"if").call(alias1,(depth0 != null ? lookupProperty(depth0,"edgeAttrs") : depth0),{"name":"if","hash":{},"fn":container.program(5, data, 0, blockParams, depths),"inverse":container.noop,"data":data,"loc":{"start":{"line":4,"column":4},"end":{"line":4,"column":50}}})) != null ? stack1 : "")
|
|
194
|
-
+ "\n\n";
|
|
195
|
-
stack1 = ((helper = (helper = lookupProperty(helpers,"modules") || (depth0 != null ? lookupProperty(depth0,"modules") : depth0)) != null ? helper : container.hooks.helperMissing),(options={"name":"modules","hash":{},"fn":container.program(7, data, 0, blockParams, depths),"inverse":container.noop,"data":data,"loc":{"start":{"line":6,"column":0},"end":{"line":16,"column":12}}}),(typeof helper === "function" ? helper.call(alias1,options) : helper));
|
|
196
|
-
if (!lookupProperty(helpers,"modules")) { stack1 = container.hooks.blockHelperMissing.call(depth0,stack1,options)}
|
|
197
|
-
if (stack1 != null) { buffer += stack1; }
|
|
198
|
-
return buffer + "}\n";
|
|
199
|
-
},"useData":true,"useDepths":true});
|
|
1
|
+
var Handlebars=require("handlebars/runtime"),template=Handlebars.template,templates=Handlebars.templates=Handlebars.templates||{};templates["dot.template.hbs"]=template({1:function(l,n,e,t,o){var a=l.lookupProperty||function(l,n){if(Object.prototype.hasOwnProperty.call(l,n))return l[n]};return null!=(a="function"==typeof(a=null!=(a=a(e,"graphAttrs")||(null!=n?a(n,"graphAttrs"):n))?a:l.hooks.helperMissing)?a.call(null!=n?n:l.nullContext||{},{name:"graphAttrs",hash:{},data:o,loc:{start:{line:2,column:22},end:{line:2,column:38}}}):a)?a:""},3:function(l,n,e,t,o){var a=l.lookupProperty||function(l,n){if(Object.prototype.hasOwnProperty.call(l,n))return l[n]};return"node ["+(null!=(a="function"==typeof(a=null!=(a=a(e,"nodeAttrs")||(null!=n?a(n,"nodeAttrs"):n))?a:l.hooks.helperMissing)?a.call(null!=n?n:l.nullContext||{},{name:"nodeAttrs",hash:{},data:o,loc:{start:{line:3,column:27},end:{line:3,column:42}}}):a)?a:"")+"]"},5:function(l,n,e,t,o){var a=l.lookupProperty||function(l,n){if(Object.prototype.hasOwnProperty.call(l,n))return l[n]};return"edge ["+(null!=(a="function"==typeof(a=null!=(a=a(e,"edgeAttrs")||(null!=n?a(n,"edgeAttrs"):n))?a:l.hooks.helperMissing)?a.call(null!=n?n:l.nullContext||{},{name:"edgeAttrs",hash:{},data:o,loc:{start:{line:4,column:27},end:{line:4,column:42}}}):a)?a:"")+"]"},7:function(l,n,e,t,o,a,r){var u=null!=n?n:l.nullContext||{},c=l.lookupProperty||function(l,n){if(Object.prototype.hasOwnProperty.call(l,n))return l[n]},i=null!=(p=c(e,"if").call(u,null!=n?c(n,"folder"):n,{name:"if",hash:{},fn:l.program(8,o,0,a,r),inverse:l.program(20,o,0,a,r),data:o,loc:{start:{line:7,column:4},end:{line:12,column:11}}}))?p:"",s=null!=(s=c(e,"dependencies")||(null!=n?c(n,"dependencies"):n))?s:l.hooks.helperMissing,o={name:"dependencies",hash:{},fn:l.program(22,o,0,a,r),inverse:l.noop,data:o,loc:{start:{line:13,column:4},end:{line:15,column:21}}},p="function"==typeof s?s.call(u,o):s;return null!=(p=!c(e,"dependencies")?l.hooks.blockHelperMissing.call(n,p,o):p)&&(i+=p),i},8:function(l,n,e,t,o,a,r){var u,c,i=null!=n?n:l.nullContext||{},s=l.hooks.helperMissing,p="function",m=l.lookupProperty||function(l,n){if(Object.prototype.hasOwnProperty.call(l,n))return l[n]};return" "+(null!=(u=m(e,"each").call(i,null!=n?m(n,"path"):n,{name:"each",hash:{},fn:l.program(9,o,0,a,r),inverse:l.noop,data:o,loc:{start:{line:8,column:4},end:{line:8,column:201}}}))?u:"")+'"'+(null!=(u=typeof(c=null!=(c=m(e,"source")||(null!=n?m(n,"source"):n))?c:s)==p?c.call(i,{name:"source",hash:{},data:o,loc:{start:{line:9,column:9},end:{line:9,column:21}}}):c)?u:"")+'" [label='+(null!=(u=typeof(c=null!=(c=m(e,"label")||(null!=n?m(n,"label"):n))?c:s)==p?c.call(i,{name:"label",hash:{},data:o,loc:{start:{line:9,column:30},end:{line:9,column:41}}}):c)?u:"")+" "+(null!=(u=m(e,"if").call(i,null!=n?m(n,"rule"):n,{name:"if",hash:{},fn:l.program(12,o,0,a,r),inverse:l.noop,data:o,loc:{start:{line:9,column:42},end:{line:9,column:87}}}))?u:"")+(null!=(u=m(e,"if").call(i,null!=n?m(n,"URL"):n,{name:"if",hash:{},fn:l.program(14,o,0,a,r),inverse:l.noop,data:o,loc:{start:{line:9,column:87},end:{line:9,column:121}}}))?u:"")+(null!=(u=m(e,"if").call(i,null!=n?m(n,"themeAttrs"):n,{name:"if",hash:{},fn:l.program(16,o,0,a,r),inverse:l.noop,data:o,loc:{start:{line:9,column:121},end:{line:9,column:162}}}))?u:"")+"]"+(null!=(u=m(e,"each").call(i,null!=n?m(n,"path"):n,{name:"each",hash:{},fn:l.program(18,o,0,a,r),inverse:l.noop,data:o,loc:{start:{line:9,column:163},end:{line:9,column:188}}}))?u:"")+"\n"},9:function(l,n,e,t,o,a,r){var u,c,i=null!=n?n:l.nullContext||{},s=l.hooks.helperMissing,p="function",m=l.lookupProperty||function(l,n){if(Object.prototype.hasOwnProperty.call(l,n))return l[n]};return'subgraph "cluster_'+(null!=(u=typeof(c=null!=(c=m(e,"aggregateSnippet")||(null!=n?m(n,"aggregateSnippet"):n))?c:s)==p?c.call(i,{name:"aggregateSnippet",hash:{},data:o,loc:{start:{line:8,column:36},end:{line:8,column:58}}}):c)?u:"")+'" {label="'+(null!=(u=typeof(c=null!=(c=m(e,"snippet")||(null!=n?m(n,"snippet"):n))?c:s)==p?c.call(i,{name:"snippet",hash:{},data:o,loc:{start:{line:8,column:68},end:{line:8,column:81}}}):c)?u:"")+'" '+(null!=(u=m(e,"if").call(i,null!=r[2]?m(r[2],"clustersHaveOwnNode"):r[2],{name:"if",hash:{},fn:l.program(10,o,0,a,r),inverse:l.noop,data:o,loc:{start:{line:8,column:83},end:{line:8,column:191}}}))?u:"")},10:function(l,n,e,t,o){var a=l.lookupProperty||function(l,n){if(Object.prototype.hasOwnProperty.call(l,n))return l[n]};return'"'+(null!=(a="function"==typeof(a=null!=(a=a(e,"aggregateSnippet")||(null!=n?a(n,"aggregateSnippet"):n))?a:l.hooks.helperMissing)?a.call(null!=n?n:l.nullContext||{},{name:"aggregateSnippet",hash:{},data:o,loc:{start:{line:8,column:117},end:{line:8,column:139}}}):a)?a:"")+'" [width="0.05" shape="point" style="invis"] '},12:function(l,n,e,t,o){var a=l.lookupProperty||function(l,n){if(Object.prototype.hasOwnProperty.call(l,n))return l[n]};return'tooltip="'+(null!=(l=l.lambda(null!=(l=null!=n?a(n,"rule"):n)?a(l,"name"):l,n))?l:"")+'" '},14:function(l,n,e,t,o){var a=l.lookupProperty||function(l,n){if(Object.prototype.hasOwnProperty.call(l,n))return l[n]};return'URL="'+(null!=(a="function"==typeof(a=null!=(a=a(e,"URL")||(null!=n?a(n,"URL"):n))?a:l.hooks.helperMissing)?a.call(null!=n?n:l.nullContext||{},{name:"URL",hash:{},data:o,loc:{start:{line:9,column:103},end:{line:9,column:112}}}):a)?a:"")+'" '},16:function(l,n,e,t,o){var a=l.lookupProperty||function(l,n){if(Object.prototype.hasOwnProperty.call(l,n))return l[n]};return null!=(a="function"==typeof(a=null!=(a=a(e,"themeAttrs")||(null!=n?a(n,"themeAttrs"):n))?a:l.hooks.helperMissing)?a.call(null!=n?n:l.nullContext||{},{name:"themeAttrs",hash:{},data:o,loc:{start:{line:9,column:139},end:{line:9,column:155}}}):a)?a:""},18:function(l,n,e,t,o){return" }"},20:function(l,n,e,t,o,a,r){var u,c,i=null!=n?n:l.nullContext||{},s=l.hooks.helperMissing,p="function",m=l.lookupProperty||function(l,n){if(Object.prototype.hasOwnProperty.call(l,n))return l[n]};return' "'+(null!=(u=typeof(c=null!=(c=m(e,"source")||(null!=n?m(n,"source"):n))?c:s)==p?c.call(i,{name:"source",hash:{},data:o,loc:{start:{line:11,column:5},end:{line:11,column:17}}}):c)?u:"")+'" [label='+(null!=(u=typeof(c=null!=(c=m(e,"label")||(null!=n?m(n,"label"):n))?c:s)==p?c.call(i,{name:"label",hash:{},data:o,loc:{start:{line:11,column:26},end:{line:11,column:37}}}):c)?u:"")+" "+(null!=(u=m(e,"if").call(i,null!=n?m(n,"rule"):n,{name:"if",hash:{},fn:l.program(12,o,0,a,r),inverse:l.noop,data:o,loc:{start:{line:11,column:38},end:{line:11,column:83}}}))?u:"")+(null!=(u=m(e,"if").call(i,null!=n?m(n,"URL"):n,{name:"if",hash:{},fn:l.program(14,o,0,a,r),inverse:l.noop,data:o,loc:{start:{line:11,column:83},end:{line:11,column:117}}}))?u:"")+(null!=(u=m(e,"if").call(i,null!=n?m(n,"themeAttrs"):n,{name:"if",hash:{},fn:l.program(16,o,0,a,r),inverse:l.noop,data:o,loc:{start:{line:11,column:117},end:{line:11,column:158}}}))?u:"")+"]\n"},22:function(l,n,e,t,o,a,r){var u,c,i=null!=n?n:l.nullContext||{},s=l.lookupProperty||function(l,n){if(Object.prototype.hasOwnProperty.call(l,n))return l[n]};return' "'+(null!=(u=l.lambda(null!=r[1]?s(r[1],"source"):r[1],n))?u:"")+'" -> "'+(null!=(u="function"==typeof(c=null!=(c=s(e,"resolved")||(null!=n?s(n,"resolved"):n))?c:l.hooks.helperMissing)?c.call(i,{name:"resolved",hash:{},data:o,loc:{start:{line:14,column:26},end:{line:14,column:40}}}):c)?u:"")+'"'+(null!=(u=s(e,"if").call(i,null!=n?s(n,"hasExtraAttributes"):n,{name:"if",hash:{},fn:l.program(23,o,0,a,r),inverse:l.noop,data:o,loc:{start:{line:14,column:41},end:{line:14,column:193}}}))?u:"")+"\n"},23:function(l,n,e,t,o,a,r){var u,c=null!=n?n:l.nullContext||{},i=l.lookupProperty||function(l,n){if(Object.prototype.hasOwnProperty.call(l,n))return l[n]};return" ["+(null!=(u=i(e,"if").call(c,null!=(u=null!=n?i(n,"rule"):n)?i(u,"name"):u,{name:"if",hash:{},fn:l.program(24,o,0,a,r),inverse:l.noop,data:o,loc:{start:{line:14,column:69},end:{line:14,column:144}}}))?u:"")+(null!=(u=i(e,"if").call(c,null!=n?i(n,"themeAttrs"):n,{name:"if",hash:{},fn:l.program(16,o,0,a,r),inverse:l.noop,data:o,loc:{start:{line:14,column:144},end:{line:14,column:185}}}))?u:"")+"]"},24:function(l,n,e,t,o){var a=l.lambda,r=l.lookupProperty||function(l,n){if(Object.prototype.hasOwnProperty.call(l,n))return l[n]};return'xlabel="'+(null!=(l=a(null!=(l=null!=n?r(n,"rule"):n)?r(l,"name"):l,n))?l:"")+'" tooltip="'+(null!=(l=a(null!=(l=null!=n?r(n,"rule"):n)?r(l,"name"):l,n))?l:"")+'" '},compiler:[8,">= 4.3.0"],main:function(l,n,e,t,o,a,r){var u=null!=n?n:l.nullContext||{},c=l.lookupProperty||function(l,n){if(Object.prototype.hasOwnProperty.call(l,n))return l[n]},i='strict digraph "dependency-cruiser output"{\n '+(null!=(p=c(e,"if").call(u,null!=n?c(n,"graphAttrs"):n,{name:"if",hash:{},fn:l.program(1,o,0,a,r),inverse:l.noop,data:o,loc:{start:{line:2,column:4},end:{line:2,column:45}}}))?p:"")+"\n "+(null!=(p=c(e,"if").call(u,null!=n?c(n,"nodeAttrs"):n,{name:"if",hash:{},fn:l.program(3,o,0,a,r),inverse:l.noop,data:o,loc:{start:{line:3,column:4},end:{line:3,column:50}}}))?p:"")+"\n "+(null!=(p=c(e,"if").call(u,null!=n?c(n,"edgeAttrs"):n,{name:"if",hash:{},fn:l.program(5,o,0,a,r),inverse:l.noop,data:o,loc:{start:{line:4,column:4},end:{line:4,column:50}}}))?p:"")+"\n\n",s=null!=(s=c(e,"modules")||(null!=n?c(n,"modules"):n))?s:l.hooks.helperMissing,o={name:"modules",hash:{},fn:l.program(7,o,0,a,r),inverse:l.noop,data:o,loc:{start:{line:6,column:0},end:{line:16,column:12}}},p="function"==typeof s?s.call(u,o):s;return null!=(p=!c(e,"modules")?l.hooks.blockHelperMissing.call(n,p,o):p)&&(i+=p),i+"}\n"},useData:!0,useDepths:!0});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const _cloneDeep = require("lodash/cloneDeep");
|
|
2
2
|
const _get = require("lodash/get");
|
|
3
3
|
const _has = require("lodash/has");
|
|
4
|
-
const DEFAULT_THEME = require("./default-theme
|
|
4
|
+
const DEFAULT_THEME = require("./default-theme");
|
|
5
5
|
|
|
6
6
|
function matchesRE(pValue, pRE) {
|
|
7
7
|
const lMatchResult = pValue.match && pValue.match(pRE);
|
|
@@ -9,7 +9,7 @@ function matchesRE(pValue, pRE) {
|
|
|
9
9
|
return Boolean(lMatchResult) && lMatchResult.length > 0;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
function
|
|
12
|
+
function moduleOrDependencyMatchesCriteria(pSchemeEntry, pModule) {
|
|
13
13
|
return Object.keys(pSchemeEntry.criteria).every(
|
|
14
14
|
(pKey) =>
|
|
15
15
|
(_get(pModule, pKey) || _has(pModule, pKey)) &&
|
|
@@ -21,7 +21,7 @@ function moduleMatchesCriteria(pSchemeEntry, pModule) {
|
|
|
21
21
|
function determineAttributes(pModuleOrDependency, pAttributeCriteria) {
|
|
22
22
|
return (pAttributeCriteria || [])
|
|
23
23
|
.filter((pSchemeEntry) =>
|
|
24
|
-
|
|
24
|
+
moduleOrDependencyMatchesCriteria(pSchemeEntry, pModuleOrDependency)
|
|
25
25
|
)
|
|
26
26
|
.map((pSchemeEntry) => pSchemeEntry.attributes)
|
|
27
27
|
.reduce((pAll, pCurrent) => ({ ...pCurrent, ...pAll }), {});
|
|
@@ -1,132 +1 @@
|
|
|
1
|
-
var Handlebars = require("handlebars/runtime"); var template = Handlebars.template, templates = Handlebars.templates = Handlebars.templates || {};
|
|
2
|
-
templates['error-html.template.hbs'] = template({"1":function(container,depth0,helpers,partials,data) {
|
|
3
|
-
var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3="function", alias4=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {
|
|
4
|
-
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
5
|
-
return parent[propertyName];
|
|
6
|
-
}
|
|
7
|
-
return undefined
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
return " <tr "
|
|
11
|
-
+ ((stack1 = lookupProperty(helpers,"if").call(alias1,(depth0 != null ? lookupProperty(depth0,"unviolated") : depth0),{"name":"if","hash":{},"fn":container.program(2, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":183,"column":16},"end":{"line":183,"column":60}}})) != null ? stack1 : "")
|
|
12
|
-
+ ">\n <td>"
|
|
13
|
-
+ ((stack1 = lookupProperty(helpers,"if").call(alias1,(depth0 != null ? lookupProperty(depth0,"unviolated") : depth0),{"name":"if","hash":{},"fn":container.program(4, data, 0),"inverse":container.program(6, data, 0),"data":data,"loc":{"start":{"line":184,"column":20},"end":{"line":185,"column":66}}})) != null ? stack1 : "")
|
|
14
|
-
+ "</td>\n <td class="
|
|
15
|
-
+ ((stack1 = lookupProperty(helpers,"if").call(alias1,(depth0 != null ? lookupProperty(depth0,"unviolated") : depth0),{"name":"if","hash":{},"fn":container.program(8, data, 0),"inverse":container.program(10, data, 0),"data":data,"loc":{"start":{"line":186,"column":26},"end":{"line":186,"column":81}}})) != null ? stack1 : "")
|
|
16
|
-
+ ">"
|
|
17
|
-
+ alias4(((helper = (helper = lookupProperty(helpers,"severity") || (depth0 != null ? lookupProperty(depth0,"severity") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"severity","hash":{},"data":data,"loc":{"start":{"line":186,"column":82},"end":{"line":186,"column":94}}}) : helper)))
|
|
18
|
-
+ "</td>\n <td class=\"nowrap\"><a href=\"#"
|
|
19
|
-
+ alias4(((helper = (helper = lookupProperty(helpers,"name") || (depth0 != null ? lookupProperty(depth0,"name") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"name","hash":{},"data":data,"loc":{"start":{"line":187,"column":45},"end":{"line":187,"column":53}}}) : helper)))
|
|
20
|
-
+ "-instance\" id=\""
|
|
21
|
-
+ alias4(((helper = (helper = lookupProperty(helpers,"name") || (depth0 != null ? lookupProperty(depth0,"name") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"name","hash":{},"data":data,"loc":{"start":{"line":187,"column":68},"end":{"line":187,"column":76}}}) : helper)))
|
|
22
|
-
+ "-definition\" class=\"noiseless\">"
|
|
23
|
-
+ alias4(((helper = (helper = lookupProperty(helpers,"name") || (depth0 != null ? lookupProperty(depth0,"name") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"name","hash":{},"data":data,"loc":{"start":{"line":187,"column":107},"end":{"line":187,"column":115}}}) : helper)))
|
|
24
|
-
+ "</a>\n </td>\n <td><strong>"
|
|
25
|
-
+ alias4(((helper = (helper = lookupProperty(helpers,"count") || (depth0 != null ? lookupProperty(depth0,"count") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"count","hash":{},"data":data,"loc":{"start":{"line":189,"column":28},"end":{"line":189,"column":37}}}) : helper)))
|
|
26
|
-
+ "</strong></td>\n <td>"
|
|
27
|
-
+ alias4(((helper = (helper = lookupProperty(helpers,"comment") || (depth0 != null ? lookupProperty(depth0,"comment") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"comment","hash":{},"data":data,"loc":{"start":{"line":190,"column":20},"end":{"line":190,"column":31}}}) : helper)))
|
|
28
|
-
+ "</td>\n </tr>\n";
|
|
29
|
-
},"2":function(container,depth0,helpers,partials,data) {
|
|
30
|
-
return "class=\"unviolated\" ";
|
|
31
|
-
},"4":function(container,depth0,helpers,partials,data) {
|
|
32
|
-
return "<span class=\"ok\">✓</span>";
|
|
33
|
-
},"6":function(container,depth0,helpers,partials,data) {
|
|
34
|
-
var helper, lookupProperty = container.lookupProperty || function(parent, propertyName) {
|
|
35
|
-
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
36
|
-
return parent[propertyName];
|
|
37
|
-
}
|
|
38
|
-
return undefined
|
|
39
|
-
};
|
|
40
|
-
|
|
41
|
-
return "<span\n class=\""
|
|
42
|
-
+ container.escapeExpression(((helper = (helper = lookupProperty(helpers,"severity") || (depth0 != null ? lookupProperty(depth0,"severity") : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === "function" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{"name":"severity","hash":{},"data":data,"loc":{"start":{"line":185,"column":31},"end":{"line":185,"column":43}}}) : helper)))
|
|
43
|
-
+ "\">✗</span>";
|
|
44
|
-
},"8":function(container,depth0,helpers,partials,data) {
|
|
45
|
-
var helper, lookupProperty = container.lookupProperty || function(parent, propertyName) {
|
|
46
|
-
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
47
|
-
return parent[propertyName];
|
|
48
|
-
}
|
|
49
|
-
return undefined
|
|
50
|
-
};
|
|
51
|
-
|
|
52
|
-
return "\""
|
|
53
|
-
+ container.escapeExpression(((helper = (helper = lookupProperty(helpers,"ok") || (depth0 != null ? lookupProperty(depth0,"ok") : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === "function" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{"name":"ok","hash":{},"data":data,"loc":{"start":{"line":186,"column":45},"end":{"line":186,"column":51}}}) : helper)))
|
|
54
|
-
+ "\"";
|
|
55
|
-
},"10":function(container,depth0,helpers,partials,data) {
|
|
56
|
-
var helper, lookupProperty = container.lookupProperty || function(parent, propertyName) {
|
|
57
|
-
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
58
|
-
return parent[propertyName];
|
|
59
|
-
}
|
|
60
|
-
return undefined
|
|
61
|
-
};
|
|
62
|
-
|
|
63
|
-
return "\""
|
|
64
|
-
+ container.escapeExpression(((helper = (helper = lookupProperty(helpers,"severity") || (depth0 != null ? lookupProperty(depth0,"severity") : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === "function" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{"name":"severity","hash":{},"data":data,"loc":{"start":{"line":186,"column":61},"end":{"line":186,"column":73}}}) : helper)))
|
|
65
|
-
+ "\"";
|
|
66
|
-
},"12":function(container,depth0,helpers,partials,data,blockParams,depths) {
|
|
67
|
-
var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {
|
|
68
|
-
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
69
|
-
return parent[propertyName];
|
|
70
|
-
}
|
|
71
|
-
return undefined
|
|
72
|
-
};
|
|
73
|
-
|
|
74
|
-
return " <h2><svg class=\"p__svg--inline\" viewBox=\"0 0 12 16\" version=\"1.1\" aria-hidden=\"true\">\n <path fill-rule=\"evenodd\"\n d=\"M5.05.31c.81 2.17.41 3.38-.52 4.31C3.55 5.67 1.98 6.45.9 7.98c-1.45 2.05-1.7 6.53 3.53 7.7-2.2-1.16-2.67-4.52-.3-6.61-.61 2.03.53 3.33 1.94 2.86 1.39-.47 2.3.53 2.27 1.67-.02.78-.31 1.44-1.13 1.81 3.42-.59 4.78-3.42 4.78-5.56 0-2.84-2.53-3.22-1.25-5.61-1.52.13-2.03 1.13-1.89 2.75.09 1.08-1.02 1.8-1.86 1.33-.67-.41-.66-1.19-.06-1.78C8.18 5.31 8.68 2.45 5.05.32L5.03.3l.02.01z\">\n </path>\n </svg> All violations</h2>\n <table>\n <thead>\n <tr>\n <th>severity</th>\n <th>rule</th>\n <th>from</th>\n <th>to</th>\n </tr>\n </thead>\n <tbody>\n"
|
|
75
|
-
+ ((stack1 = container.hooks.blockHelperMissing.call(depth0,container.lambda(((stack1 = (depth0 != null ? lookupProperty(depth0,"summary") : depth0)) != null ? lookupProperty(stack1,"violations") : stack1), depth0),{"name":"summary.violations","hash":{},"fn":container.program(13, data, 0, blockParams, depths),"inverse":container.noop,"data":data,"loc":{"start":{"line":222,"column":12},"end":{"line":231,"column":35}}})) != null ? stack1 : "")
|
|
76
|
-
+ " </tbody>\n </table>\n";
|
|
77
|
-
},"13":function(container,depth0,helpers,partials,data,blockParams,depths) {
|
|
78
|
-
var stack1, helper, alias1=container.lambda, alias2=container.escapeExpression, alias3=depth0 != null ? depth0 : (container.nullContext || {}), alias4=container.hooks.helperMissing, alias5="function", lookupProperty = container.lookupProperty || function(parent, propertyName) {
|
|
79
|
-
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
80
|
-
return parent[propertyName];
|
|
81
|
-
}
|
|
82
|
-
return undefined
|
|
83
|
-
};
|
|
84
|
-
|
|
85
|
-
return " <tr>\n <td class=\""
|
|
86
|
-
+ alias2(alias1(((stack1 = (depth0 != null ? lookupProperty(depth0,"rule") : depth0)) != null ? lookupProperty(stack1,"severity") : stack1), depth0))
|
|
87
|
-
+ "\">"
|
|
88
|
-
+ alias2(alias1(((stack1 = (depth0 != null ? lookupProperty(depth0,"rule") : depth0)) != null ? lookupProperty(stack1,"severity") : stack1), depth0))
|
|
89
|
-
+ "</td>\n <td class=\"nowrap\"><a href=\"#"
|
|
90
|
-
+ alias2(alias1(((stack1 = (depth0 != null ? lookupProperty(depth0,"rule") : depth0)) != null ? lookupProperty(stack1,"name") : stack1), depth0))
|
|
91
|
-
+ "-definition\" id=\""
|
|
92
|
-
+ alias2(alias1(((stack1 = (depth0 != null ? lookupProperty(depth0,"rule") : depth0)) != null ? lookupProperty(stack1,"name") : stack1), depth0))
|
|
93
|
-
+ "-instance\"\n class=\"noiseless\">"
|
|
94
|
-
+ alias2(alias1(((stack1 = (depth0 != null ? lookupProperty(depth0,"rule") : depth0)) != null ? lookupProperty(stack1,"name") : stack1), depth0))
|
|
95
|
-
+ "</a></td>\n <td><a href=\""
|
|
96
|
-
+ alias2(alias1(((stack1 = ((stack1 = (depths[1] != null ? lookupProperty(depths[1],"summary") : depths[1])) != null ? lookupProperty(stack1,"optionsUsed") : stack1)) != null ? lookupProperty(stack1,"prefix") : stack1), depth0))
|
|
97
|
-
+ alias2(((helper = (helper = lookupProperty(helpers,"from") || (depth0 != null ? lookupProperty(depth0,"from") : depth0)) != null ? helper : alias4),(typeof helper === alias5 ? helper.call(alias3,{"name":"from","hash":{},"data":data,"loc":{"start":{"line":227,"column":62},"end":{"line":227,"column":70}}}) : helper)))
|
|
98
|
-
+ "\">"
|
|
99
|
-
+ alias2(((helper = (helper = lookupProperty(helpers,"from") || (depth0 != null ? lookupProperty(depth0,"from") : depth0)) != null ? helper : alias4),(typeof helper === alias5 ? helper.call(alias3,{"name":"from","hash":{},"data":data,"loc":{"start":{"line":227,"column":72},"end":{"line":227,"column":80}}}) : helper)))
|
|
100
|
-
+ "</a></td>\n <td>"
|
|
101
|
-
+ ((stack1 = ((helper = (helper = lookupProperty(helpers,"to") || (depth0 != null ? lookupProperty(depth0,"to") : depth0)) != null ? helper : alias4),(typeof helper === alias5 ? helper.call(alias3,{"name":"to","hash":{},"data":data,"loc":{"start":{"line":228,"column":20},"end":{"line":228,"column":28}}}) : helper))) != null ? stack1 : "")
|
|
102
|
-
+ "</td>\n\n </tr>\n";
|
|
103
|
-
},"15":function(container,depth0,helpers,partials,data) {
|
|
104
|
-
return " <h2><span aria-hidden=\"true\">♥</span> No violations found</h2>\n <p>Get gummy bears to celebrate.</p>\n";
|
|
105
|
-
},"compiler":[8,">= 4.3.0"],"main":function(container,depth0,helpers,partials,data,blockParams,depths) {
|
|
106
|
-
var stack1, alias1=container.lambda, alias2=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {
|
|
107
|
-
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
108
|
-
return parent[propertyName];
|
|
109
|
-
}
|
|
110
|
-
return undefined
|
|
111
|
-
};
|
|
112
|
-
|
|
113
|
-
return "<!DOCTYPE html>\n<html lang=\"en\">\n\n<head>\n <title>dependency-cruiser - results</title>\n <meta charset=\"utf-8\">\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n\n <style type=\"text/css\">\n body {\n font-family: sans-serif;\n margin: 0 auto;\n max-width: 90%;\n line-height: 1.6;\n font-size: 14px;\n color: #444;\n padding: 0 10px;\n background-color: #fff;\n }\n\n footer {\n color: gray;\n margin-top: 1.4em;\n border-top: solid 1px currentColor\n }\n\n a {\n text-decoration: none\n }\n\n a.noiseless {\n color: currentColor\n }\n\n h1,\n h2,\n h3 {\n line-height: 1.2\n }\n\n table {\n border-collapse: collapse;\n width: 100%;\n }\n\n th,\n td {\n text-align: left;\n padding: 4px;\n }\n\n tbody tr:nth-child(odd) {\n background-color: rgba(128, 128, 128, 0.2);\n }\n\n .error {\n color: red;\n }\n\n .warn {\n color: orange;\n }\n\n .info {\n color: blue;\n }\n\n .ok {\n color: limegreen;\n }\n\n td.nowrap {\n white-space: nowrap\n }\n\n svg {\n fill: currentColor\n }\n\n #show-unviolated {\n display: block\n }\n\n #hide-unviolated {\n display: none\n }\n\n #show-all-the-rules:target #show-unviolated {\n display: none\n }\n\n #show-all-the-rules:target #hide-unviolated {\n display: block\n }\n\n tr.unviolated {\n display: none\n }\n\n #show-all-the-rules:target tr.unviolated {\n display: table-row;\n color: gray;\n }\n\n .p__svg--inline {\n vertical-align: top;\n width: 1.2em;\n height: 1.2em\n }\n\n .controls {\n background-color: #fff;\n vertical-align: bottom;\n text-align: center\n }\n\n .controls:hover {\n opacity: 1;\n }\n\n .controls a {\n text-decoration: none;\n color: gray;\n }\n\n .controls a:hover {\n text-decoration: underline;\n color: blue;\n }\n\n .extra {\n color: gray;\n }\n </style>\n <style type=\"text/css\" media=\"print\">\n th,\n td {\n border: 1px solid #444;\n }\n\n .controls {\n display: none\n }\n </style>\n</head>\n\n<body id=\"show-all-the-rules\">\n <h1>Forbidden dependency check - results</h1>\n <h2><svg class=\"p__svg--inline\" viewBox=\"0 0 14 16\" version=\"1.1\" aria-hidden=\"true\">\n <path fill-rule=\"evenodd\"\n d=\"M11.5 8L8.8 5.4 6.6 8.5 5.5 1.6 2.38 8H0v2h3.6l.9-1.8.9 5.4L9 8.5l1.6 1.5H14V8h-2.5z\"></path>\n </svg> Summary</h2>\n <p>\n <div style=\"float:left;padding-right:20px\">\n <strong>"
|
|
114
|
-
+ alias2(alias1(((stack1 = (depth0 != null ? lookupProperty(depth0,"summary") : depth0)) != null ? lookupProperty(stack1,"totalCruised") : stack1), depth0))
|
|
115
|
-
+ "</strong> modules\n </div>\n <div style=\"float:left;padding-right:20px\">\n <strong>"
|
|
116
|
-
+ alias2(alias1(((stack1 = (depth0 != null ? lookupProperty(depth0,"summary") : depth0)) != null ? lookupProperty(stack1,"totalDependenciesCruised") : stack1), depth0))
|
|
117
|
-
+ "</strong> dependencies\n </div>\n <div style=\"float:left;padding-right:20px\">\n <strong>"
|
|
118
|
-
+ alias2(alias1(((stack1 = (depth0 != null ? lookupProperty(depth0,"summary") : depth0)) != null ? lookupProperty(stack1,"error") : stack1), depth0))
|
|
119
|
-
+ "</strong> errors\n </div>\n <div style=\"float:left;padding-right:20px\">\n <strong>"
|
|
120
|
-
+ alias2(alias1(((stack1 = (depth0 != null ? lookupProperty(depth0,"summary") : depth0)) != null ? lookupProperty(stack1,"warn") : stack1), depth0))
|
|
121
|
-
+ "</strong> warnings\n </div>\n <div style=\"float:left;padding-right:20px\">\n <strong>"
|
|
122
|
-
+ alias2(alias1(((stack1 = (depth0 != null ? lookupProperty(depth0,"summary") : depth0)) != null ? lookupProperty(stack1,"info") : stack1), depth0))
|
|
123
|
-
+ "</strong> informational\n </div>\n \n </p>\n <table>\n <tbody>\n <thead>\n <tr>\n <th></th>\n <th>severity</th>\n <th>rule</th>\n <th># violations</th>\n <th>explanation</th>\n </tr>\n </thead>\n"
|
|
124
|
-
+ ((stack1 = container.hooks.blockHelperMissing.call(depth0,alias1(((stack1 = (depth0 != null ? lookupProperty(depth0,"summary") : depth0)) != null ? lookupProperty(stack1,"agggregateViolations") : stack1), depth0),{"name":"summary.agggregateViolations","hash":{},"fn":container.program(1, data, 0, blockParams, depths),"inverse":container.noop,"data":data,"loc":{"start":{"line":182,"column":12},"end":{"line":192,"column":45}}})) != null ? stack1 : "")
|
|
125
|
-
+ " <tr>\n <td colspan=\"5\" class=\"controls\">\n <div id=\"show-unviolated\">\n ↓ <a href=\"#show-all-the-rules\">also show unviolated rules</a>\n </div>\n <div id=\"hide-unviolated\">\n ↑ <a href=\"\">hide unviolated rules</a>\n </div>\n </td>\n </tr>\n </tbody>\n </table>\n\n"
|
|
126
|
-
+ ((stack1 = lookupProperty(helpers,"if").call(depth0 != null ? depth0 : (container.nullContext || {}),((stack1 = (depth0 != null ? lookupProperty(depth0,"summary") : depth0)) != null ? lookupProperty(stack1,"violations") : stack1),{"name":"if","hash":{},"fn":container.program(12, data, 0, blockParams, depths),"inverse":container.program(15, data, 0, blockParams, depths),"data":data,"loc":{"start":{"line":206,"column":4},"end":{"line":237,"column":11}}})) != null ? stack1 : "")
|
|
127
|
-
+ " <footer>\n <p><a href=\"https://github.com/sverweij/dependency-cruiser\">"
|
|
128
|
-
+ alias2(alias1(((stack1 = (depth0 != null ? lookupProperty(depth0,"summary") : depth0)) != null ? lookupProperty(stack1,"depcruiseVersion") : stack1), depth0))
|
|
129
|
-
+ "</a> /\n "
|
|
130
|
-
+ alias2(alias1(((stack1 = (depth0 != null ? lookupProperty(depth0,"summary") : depth0)) != null ? lookupProperty(stack1,"runDate") : stack1), depth0))
|
|
131
|
-
+ "</p>\n </footer>\n</body>\n\n</html>";
|
|
132
|
-
},"useData":true,"useDepths":true});
|
|
1
|
+
var Handlebars=require("handlebars/runtime"),template=Handlebars.template,templates=Handlebars.templates=Handlebars.templates||{};templates["error-html.template.hbs"]=template({1:function(n,l,e,t,o){var a,r=null!=l?l:n.nullContext||{},s=n.hooks.helperMissing,i="function",u=n.escapeExpression,c=n.lookupProperty||function(n,l){if(Object.prototype.hasOwnProperty.call(n,l))return n[l]};return" <tr "+(null!=(a=c(e,"if").call(r,null!=l?c(l,"unviolated"):l,{name:"if",hash:{},fn:n.program(2,o,0),inverse:n.noop,data:o,loc:{start:{line:183,column:16},end:{line:183,column:60}}}))?a:"")+">\n <td>"+(null!=(a=c(e,"if").call(r,null!=l?c(l,"unviolated"):l,{name:"if",hash:{},fn:n.program(4,o,0),inverse:n.program(6,o,0),data:o,loc:{start:{line:184,column:20},end:{line:185,column:66}}}))?a:"")+"</td>\n <td class="+(null!=(a=c(e,"if").call(r,null!=l?c(l,"unviolated"):l,{name:"if",hash:{},fn:n.program(8,o,0),inverse:n.program(10,o,0),data:o,loc:{start:{line:186,column:26},end:{line:186,column:81}}}))?a:"")+">"+u(typeof(a=null!=(a=c(e,"severity")||(null!=l?c(l,"severity"):l))?a:s)==i?a.call(r,{name:"severity",hash:{},data:o,loc:{start:{line:186,column:82},end:{line:186,column:94}}}):a)+'</td>\n <td class="nowrap"><a href="#'+u(typeof(a=null!=(a=c(e,"name")||(null!=l?c(l,"name"):l))?a:s)==i?a.call(r,{name:"name",hash:{},data:o,loc:{start:{line:187,column:45},end:{line:187,column:53}}}):a)+'-instance" id="'+u(typeof(a=null!=(a=c(e,"name")||(null!=l?c(l,"name"):l))?a:s)==i?a.call(r,{name:"name",hash:{},data:o,loc:{start:{line:187,column:68},end:{line:187,column:76}}}):a)+'-definition" class="noiseless">'+u(typeof(a=null!=(a=c(e,"name")||(null!=l?c(l,"name"):l))?a:s)==i?a.call(r,{name:"name",hash:{},data:o,loc:{start:{line:187,column:107},end:{line:187,column:115}}}):a)+"</a>\n </td>\n <td><strong>"+u(typeof(a=null!=(a=c(e,"count")||(null!=l?c(l,"count"):l))?a:s)==i?a.call(r,{name:"count",hash:{},data:o,loc:{start:{line:189,column:28},end:{line:189,column:37}}}):a)+"</strong></td>\n <td>"+u(typeof(a=null!=(a=c(e,"comment")||(null!=l?c(l,"comment"):l))?a:s)==i?a.call(r,{name:"comment",hash:{},data:o,loc:{start:{line:190,column:20},end:{line:190,column:31}}}):a)+"</td>\n </tr>\n"},2:function(n,l,e,t,o){return'class="unviolated" '},4:function(n,l,e,t,o){return'<span class="ok">✓</span>'},6:function(n,l,e,t,o){var a=n.lookupProperty||function(n,l){if(Object.prototype.hasOwnProperty.call(n,l))return n[l]};return'<span\n class="'+n.escapeExpression("function"==typeof(a=null!=(a=a(e,"severity")||(null!=l?a(l,"severity"):l))?a:n.hooks.helperMissing)?a.call(null!=l?l:n.nullContext||{},{name:"severity",hash:{},data:o,loc:{start:{line:185,column:31},end:{line:185,column:43}}}):a)+'">✗</span>'},8:function(n,l,e,t,o){var a=n.lookupProperty||function(n,l){if(Object.prototype.hasOwnProperty.call(n,l))return n[l]};return'"'+n.escapeExpression("function"==typeof(a=null!=(a=a(e,"ok")||(null!=l?a(l,"ok"):l))?a:n.hooks.helperMissing)?a.call(null!=l?l:n.nullContext||{},{name:"ok",hash:{},data:o,loc:{start:{line:186,column:45},end:{line:186,column:51}}}):a)+'"'},10:function(n,l,e,t,o){var a=n.lookupProperty||function(n,l){if(Object.prototype.hasOwnProperty.call(n,l))return n[l]};return'"'+n.escapeExpression("function"==typeof(a=null!=(a=a(e,"severity")||(null!=l?a(l,"severity"):l))?a:n.hooks.helperMissing)?a.call(null!=l?l:n.nullContext||{},{name:"severity",hash:{},data:o,loc:{start:{line:186,column:61},end:{line:186,column:73}}}):a)+'"'},12:function(n,l,e,t,o,a,r){var s,i=n.lookupProperty||function(n,l){if(Object.prototype.hasOwnProperty.call(n,l))return n[l]};return' <h2><svg class="p__svg--inline" viewBox="0 0 12 16" version="1.1" aria-hidden="true">\n <path fill-rule="evenodd"\n d="M5.05.31c.81 2.17.41 3.38-.52 4.31C3.55 5.67 1.98 6.45.9 7.98c-1.45 2.05-1.7 6.53 3.53 7.7-2.2-1.16-2.67-4.52-.3-6.61-.61 2.03.53 3.33 1.94 2.86 1.39-.47 2.3.53 2.27 1.67-.02.78-.31 1.44-1.13 1.81 3.42-.59 4.78-3.42 4.78-5.56 0-2.84-2.53-3.22-1.25-5.61-1.52.13-2.03 1.13-1.89 2.75.09 1.08-1.02 1.8-1.86 1.33-.67-.41-.66-1.19-.06-1.78C8.18 5.31 8.68 2.45 5.05.32L5.03.3l.02.01z">\n </path>\n </svg> All violations</h2>\n <table>\n <thead>\n <tr>\n <th>severity</th>\n <th>rule</th>\n <th>from</th>\n <th>to</th>\n </tr>\n </thead>\n <tbody>\n'+(null!=(s=n.hooks.blockHelperMissing.call(l,n.lambda(null!=(s=null!=l?i(l,"summary"):l)?i(s,"violations"):s,l),{name:"summary.violations",hash:{},fn:n.program(13,o,0,a,r),inverse:n.noop,data:o,loc:{start:{line:222,column:12},end:{line:231,column:35}}}))?s:"")+" </tbody>\n </table>\n"},13:function(n,l,e,t,o,a,r){var s=n.lambda,i=n.escapeExpression,u=null!=l?l:n.nullContext||{},c=n.hooks.helperMissing,d="function",p=n.lookupProperty||function(n,l){if(Object.prototype.hasOwnProperty.call(n,l))return n[l]};return' <tr>\n <td class="'+i(s(null!=(n=null!=l?p(l,"rule"):l)?p(n,"severity"):n,l))+'">'+i(s(null!=(n=null!=l?p(l,"rule"):l)?p(n,"severity"):n,l))+'</td>\n <td class="nowrap"><a href="#'+i(s(null!=(n=null!=l?p(l,"rule"):l)?p(n,"name"):n,l))+'-definition" id="'+i(s(null!=(n=null!=l?p(l,"rule"):l)?p(n,"name"):n,l))+'-instance"\n class="noiseless">'+i(s(null!=(n=null!=l?p(l,"rule"):l)?p(n,"name"):n,l))+'</a></td>\n <td><a href="'+i(s(null!=(n=null!=(n=null!=r[1]?p(r[1],"summary"):r[1])?p(n,"optionsUsed"):n)?p(n,"prefix"):n,l))+i(typeof(r=null!=(r=p(e,"from")||(null!=l?p(l,"from"):l))?r:c)==d?r.call(u,{name:"from",hash:{},data:o,loc:{start:{line:227,column:62},end:{line:227,column:70}}}):r)+'">'+i(typeof(r=null!=(r=p(e,"from")||(null!=l?p(l,"from"):l))?r:c)==d?r.call(u,{name:"from",hash:{},data:o,loc:{start:{line:227,column:72},end:{line:227,column:80}}}):r)+"</a></td>\n <td>"+(null!=(n=typeof(r=null!=(r=p(e,"to")||(null!=l?p(l,"to"):l))?r:c)==d?r.call(u,{name:"to",hash:{},data:o,loc:{start:{line:228,column:20},end:{line:228,column:28}}}):r)?n:"")+"</td>\n\n </tr>\n"},15:function(n,l,e,t,o){return' <h2><span aria-hidden="true">♥</span> No violations found</h2>\n <p>Get gummy bears to celebrate.</p>\n'},compiler:[8,">= 4.3.0"],main:function(n,l,e,t,o,a,r){var s,i=n.lambda,u=n.escapeExpression,c=n.lookupProperty||function(n,l){if(Object.prototype.hasOwnProperty.call(n,l))return n[l]};return'<!DOCTYPE html>\n<html lang="en">\n\n<head>\n <title>dependency-cruiser - results</title>\n <meta charset="utf-8">\n <meta name="viewport" content="width=device-width, initial-scale=1">\n\n <style type="text/css">\n body {\n font-family: sans-serif;\n margin: 0 auto;\n max-width: 90%;\n line-height: 1.6;\n font-size: 14px;\n color: #444;\n padding: 0 10px;\n background-color: #fff;\n }\n\n footer {\n color: gray;\n margin-top: 1.4em;\n border-top: solid 1px currentColor\n }\n\n a {\n text-decoration: none\n }\n\n a.noiseless {\n color: currentColor\n }\n\n h1,\n h2,\n h3 {\n line-height: 1.2\n }\n\n table {\n border-collapse: collapse;\n width: 100%;\n }\n\n th,\n td {\n text-align: left;\n padding: 4px;\n }\n\n tbody tr:nth-child(odd) {\n background-color: rgba(128, 128, 128, 0.2);\n }\n\n .error {\n color: red;\n }\n\n .warn {\n color: orange;\n }\n\n .info {\n color: blue;\n }\n\n .ok {\n color: limegreen;\n }\n\n td.nowrap {\n white-space: nowrap\n }\n\n svg {\n fill: currentColor\n }\n\n #show-unviolated {\n display: block\n }\n\n #hide-unviolated {\n display: none\n }\n\n #show-all-the-rules:target #show-unviolated {\n display: none\n }\n\n #show-all-the-rules:target #hide-unviolated {\n display: block\n }\n\n tr.unviolated {\n display: none\n }\n\n #show-all-the-rules:target tr.unviolated {\n display: table-row;\n color: gray;\n }\n\n .p__svg--inline {\n vertical-align: top;\n width: 1.2em;\n height: 1.2em\n }\n\n .controls {\n background-color: #fff;\n vertical-align: bottom;\n text-align: center\n }\n\n .controls:hover {\n opacity: 1;\n }\n\n .controls a {\n text-decoration: none;\n color: gray;\n }\n\n .controls a:hover {\n text-decoration: underline;\n color: blue;\n }\n\n .extra {\n color: gray;\n }\n </style>\n <style type="text/css" media="print">\n th,\n td {\n border: 1px solid #444;\n }\n\n .controls {\n display: none\n }\n </style>\n</head>\n\n<body id="show-all-the-rules">\n <h1>Forbidden dependency check - results</h1>\n <h2><svg class="p__svg--inline" viewBox="0 0 14 16" version="1.1" aria-hidden="true">\n <path fill-rule="evenodd"\n d="M11.5 8L8.8 5.4 6.6 8.5 5.5 1.6 2.38 8H0v2h3.6l.9-1.8.9 5.4L9 8.5l1.6 1.5H14V8h-2.5z"></path>\n </svg> Summary</h2>\n <p>\n <div style="float:left;padding-right:20px">\n <strong>'+u(i(null!=(s=null!=l?c(l,"summary"):l)?c(s,"totalCruised"):s,l))+'</strong> modules\n </div>\n <div style="float:left;padding-right:20px">\n <strong>'+u(i(null!=(s=null!=l?c(l,"summary"):l)?c(s,"totalDependenciesCruised"):s,l))+'</strong> dependencies\n </div>\n <div style="float:left;padding-right:20px">\n <strong>'+u(i(null!=(s=null!=l?c(l,"summary"):l)?c(s,"error"):s,l))+'</strong> errors\n </div>\n <div style="float:left;padding-right:20px">\n <strong>'+u(i(null!=(s=null!=l?c(l,"summary"):l)?c(s,"warn"):s,l))+'</strong> warnings\n </div>\n <div style="float:left;padding-right:20px">\n <strong>'+u(i(null!=(s=null!=l?c(l,"summary"):l)?c(s,"info"):s,l))+"</strong> informational\n </div>\n \n </p>\n <table>\n <tbody>\n <thead>\n <tr>\n <th></th>\n <th>severity</th>\n <th>rule</th>\n <th># violations</th>\n <th>explanation</th>\n </tr>\n </thead>\n"+(null!=(s=n.hooks.blockHelperMissing.call(l,i(null!=(s=null!=l?c(l,"summary"):l)?c(s,"agggregateViolations"):s,l),{name:"summary.agggregateViolations",hash:{},fn:n.program(1,o,0,a,r),inverse:n.noop,data:o,loc:{start:{line:182,column:12},end:{line:192,column:45}}}))?s:"")+' <tr>\n <td colspan="5" class="controls">\n <div id="show-unviolated">\n ↓ <a href="#show-all-the-rules">also show unviolated rules</a>\n </div>\n <div id="hide-unviolated">\n ↑ <a href="">hide unviolated rules</a>\n </div>\n </td>\n </tr>\n </tbody>\n </table>\n\n'+(null!=(s=c(e,"if").call(null!=l?l:n.nullContext||{},null!=(s=null!=l?c(l,"summary"):l)?c(s,"violations"):s,{name:"if",hash:{},fn:n.program(12,o,0,a,r),inverse:n.program(15,o,0,a,r),data:o,loc:{start:{line:206,column:4},end:{line:237,column:11}}}))?s:"")+' <footer>\n <p><a href="https://github.com/sverweij/dependency-cruiser">'+u(i(null!=(s=null!=l?c(l,"summary"):l)?c(s,"depcruiseVersion"):s,l))+"</a> /\n "+u(i(null!=(s=null!=l?c(l,"summary"):l)?c(s,"runDate"):s,l))+"</p>\n </footer>\n</body>\n\n</html>"},useData:!0,useDepths:!0});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const _get = require("lodash/get");
|
|
2
2
|
const _has = require("lodash/has");
|
|
3
|
-
const { version } = require("../../../
|
|
3
|
+
const { version } = require("../../../src/meta.js");
|
|
4
4
|
|
|
5
5
|
function getFormattedAllowedRule(pRuleSetUsed) {
|
|
6
6
|
const lAllowed = _get(pRuleSetUsed, "allowed", []);
|