Skip to content

Commit

Permalink
adds feature that enables matching everything _except_ the given pattern
Browse files Browse the repository at this point in the history
e.g. usefull if you want to forbid dependencies to a module, but not from within that module itself

... or forbid relations to siblings, but not to itself and all other modules not being siblings
  • Loading branch information
sverweij committed Nov 27, 2016
1 parent 090c362 commit 9311292
Show file tree
Hide file tree
Showing 14 changed files with 336 additions and 221 deletions.
26 changes: 13 additions & 13 deletions doc/assets/sample-csv-output.csv
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
"","test/fixtures/cjs/one_only_one.js","test/fixtures/cjs/one_only_two.js","test/fixtures/cjs/root_one.js","test/fixtures/cjs/root_two.js","test/fixtures/cjs/shared.js","test/fixtures/cjs/somedata.json","test/fixtures/cjs/sub/depindir.js","test/fixtures/cjs/sub/dir.js","test/fixtures/cjs/two_only_one.js","fs","http","path",""
"test/fixtures/cjs/one_only_one.js","false","false","false","false","false","false","false","false","false","false","false","true",""
"test/fixtures/cjs/one_only_two.js","false","false","false","false","false","false","false","false","false","false","false","true",""
"test/fixtures/cjs/root_one.js","true","true","false","false","true","false","false","error","false","true","false","false",""
"test/fixtures/cjs/root_two.js","false","false","false","false","true","true","false","false","true","false","true","false",""
"test/fixtures/cjs/shared.js","false","false","false","false","false","false","false","false","false","false","false","true",""
"test/fixtures/cjs/somedata.json","false","false","false","false","false","false","false","false","false","false","false","false",""
"test/fixtures/cjs/sub/depindir.js","false","false","false","false","false","false","false","false","false","false","false","true",""
"test/fixtures/cjs/sub/dir.js","false","false","false","false","false","false","error","false","false","false","false","true",""
"test/fixtures/cjs/two_only_one.js","false","false","false","false","false","false","false","error","false","false","false","false",""
"fs","false","false","false","false","false","false","false","false","false","false","false","false",""
"http","false","false","false","false","false","false","false","false","false","false","false","false",""
"path","false","false","false","false","false","false","false","false","false","false","false","false",""
,test/fixtures/cjs/one_only_one.js,test/fixtures/cjs/one_only_two.js,test/fixtures/cjs/root_one.js,test/fixtures/cjs/root_two.js,test/fixtures/cjs/shared.js,test/fixtures/cjs/somedata.json,test/fixtures/cjs/sub/depindir.js,test/fixtures/cjs/sub/dir.js,test/fixtures/cjs/two_only_one.js,fs,http,path
test/fixtures/cjs/one_only_one.js,false,false,false,false,false,false,false,false,false,false,false,true
test/fixtures/cjs/one_only_two.js,false,false,false,false,false,false,false,false,false,false,false,true
test/fixtures/cjs/root_one.js,true,true,false,false,true,false,false,error,false,true,false,false
test/fixtures/cjs/root_two.js,false,false,false,false,true,true,false,false,true,false,true,false
test/fixtures/cjs/shared.js,false,false,false,false,false,false,false,false,false,false,false,true
test/fixtures/cjs/somedata.json,false,false,false,false,false,false,false,false,false,false,false,false
test/fixtures/cjs/sub/depindir.js,false,false,false,false,false,false,false,false,false,false,false,true
test/fixtures/cjs/sub/dir.js,false,false,false,false,false,false,true,false,false,false,false,true
test/fixtures/cjs/two_only_one.js,false,false,false,false,false,false,false,error,false,false,false,false
fs,false,false,false,false,false,false,false,false,false,false,false,false
http,false,false,false,false,false,false,false,false,false,false,false,false
path,false,false,false,false,false,false,false,false,false,false,false,false
Binary file modified doc/assets/sample-csv-output.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified doc/assets/sample-dot-output.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified doc/assets/sample-err-output.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions doc/assets/sample-err-output.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

error sub-not-allowed: test/fixtures/cjs/root_one.js => test/fixtures/cjs/sub/dir.js
error sub-not-allowed: test/fixtures/cjs/sub/dir.js => test/fixtures/cjs/sub/depindir.js
error sub-not-allowed: test/fixtures/cjs/two_only_one.js => test/fixtures/cjs/sub/dir.js

3 violations found
2 violations found

11 changes: 7 additions & 4 deletions doc/assets/sample-html-output.html
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,10 @@
color: grey;
font-style: italic;
}
.cell-unresolvable-module {
color: red;
font-style: italic;
}
.cell-true {
background-color: black;
opacity: 0.5;
Expand All @@ -105,11 +109,11 @@
background-color: red;
opacity: 0.5;
}
.cell-warning {
.cell-warn {
background-color: orange;
opacity: 0.5;
}
.cell-information {
.cell-info {
background-color: blue;
opacity: 0.5;
}
Expand Down Expand Up @@ -177,8 +181,7 @@
</tr>
<tr>
<td class="first-cell">test/fixtures/cjs/sub/dir.js</td>
<td class="cell cell-false"></td><td class="cell cell-false"></td><td class="cell cell-false"></td><td class="cell cell-false"></td><td class="cell cell-false"></td><td class="cell cell-false"></td><td class="cell cell-error" title="sub-not-allowed:
test/fixtures/cjs/sub/dir.js ->
<td class="cell cell-false"></td><td class="cell cell-false"></td><td class="cell cell-false"></td><td class="cell cell-false"></td><td class="cell cell-false"></td><td class="cell cell-false"></td><td class="cell cell-true" title="test/fixtures/cjs/sub/dir.js ->
test/fixtures/cjs/sub/depindir.js"></td><td class="cell cell-false"></td><td class="cell cell-false"></td><td class="cell cell-false"></td><td class="cell cell-false"></td><td class="cell cell-true" title="test/fixtures/cjs/sub/dir.js ->
path"></td>
<td class="first-cell">test/fixtures/cjs/sub/dir.js</td>
Expand Down
Binary file modified doc/assets/sample-html-output.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified doc/assets/sample-html-rotated-output.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 9311292

Please sign in to comment.