-
Notifications
You must be signed in to change notification settings - Fork 249
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature request: Add option to filter out modules that do or do not pass rules #344
Comments
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 into
reporterOptions.dot.filters.exclude
. not the worst.The text was updated successfully, but these errors were encountered: