Skip to content
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

Add config for reporting transitively dead things. #601

Merged
merged 8 commits into from
Oct 22, 2022

Conversation

cristianoc
Copy link
Collaborator

@cristianoc cristianoc commented Oct 12, 2022

Add configuration parameter "transitive" under "reanalyze". If set to false, the analysis does not report transitively dead items. So removing the reported item individually can be done in isolation. This is a more fine-grained process for guiding the user to remove dead code one item at a time.

This feature comes from a conversation with @jfmengels on how https://github.com/jfmengels/elm-review is designed.

@cristianoc cristianoc requested a review from zth October 12, 2022 12:56
This is the normal behaviour: no change.
When turned off, only the top dead things, and not the transitive ones, are reported.
As the only way for a module to be dead would be for it to be empty.
@cristianoc cristianoc requested review from zth and removed request for zth October 21, 2022 10:42
@cristianoc cristianoc merged commit e071754 into master Oct 22, 2022
@cristianoc cristianoc deleted the report-transitive branch October 22, 2022 11:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants