Open forivall opened 4 years ago
Hi @forivall thanks for this suggestion (and the research), sorry for the slow reaction - I needed some time to reflect on this and see the general applicability and usability - and now see 'show me a graph focussing on all modules (& dependencies) that fail (/ pass) rule x' could be useful especially if the repo is larger.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
Context
I want to show only tsx files that actually require
react
in my dependency graph visualization.see #343 for more context
For the given rule
i'd like to only show modules that pass this rule
Expected Behavior
these non-react modules are hidden in the dependency graph
Current Behavior
the modules are shown in the dependency graph
Possible Solution
Update IReporterFiltersType
where, in my example, i would use
Considered alternatives
Current workaround is to run
depcruise --config .dependency-cruiser.js src|grep tsx-must-require-react | cut -d: -f2
and paste that intoreporterOptions.dot.filters.exclude
. not the worst.