Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(graph-utl): lets findRuleByName also search in 'required' rules (#…
…931) ## Description - lets findRuleByName also search in 'required' rules ## Motivation and Context fixes #930 ## How Has This Been Tested? - [x] green ci - [x] additional automated non-regression test ## Screenshots With this rule added to dependency-cruiser's own config ```javascript // ... "required": [ { "name": "something-required", "comment": "Foo bar baz quux garply waldo fred plugh xyzzy thud", "severity": "warn", "module": { "path": "^src/meta.cjs$" }, "to": { "path": "^test/kannie" } } ], // ... ``` ... `npx depcruise --progress -T err-long` shows this: ``` warn something-required: src/meta.cjs Foo bar baz quux garply waldo fred plugh xyzzy thud ✘ 1 dependency violations (0 errors, 1 warnings). 545 modules, 1325 dependencies cruised. ⚠ 7 known violations ignored. Run with --no-ignore-known to see them. ``` ## Types of changes - [x] Bug fix (non-breaking change which fixes an issue) - [ ] Documentation only change - [ ] Refactor (non-breaking change which fixes an issue without changing functionality) - [ ] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to change)
- Loading branch information