Issue: depcruise doesn't fail if the path patterns in from
or to
are never matched
#980
Labels
enhancement
this will make dependency-cruiser sweeter
Expected Behavior
If I write a reachability rule, and the paths defined in
from
orto
don't resolve to actual files on disk, I've written an incorrect rule. It would be best if depcruise failed in this case so that the developer can catch and fix the rule. It also helps ensure that dependency tests continue to stay in sync as files are moved around.Current Behavior
depcruise silently succeeds.
Possible Solution
Make depcruise fail if
from
orto
are never matched by a file on disk.Steps to Reproduce (for bugs)
I'm using 16.9.0-beta-1 and able to reproduce this with a simple rule of the form of
Context
I'm writing rules in depcruise, putting them in my CI, and I want them to continue to stay correct over time.
Your Environment
The text was updated successfully, but these errors were encountered: