refactor: most pub use lines in mod.rs not needed
#2259
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Issues
N/A
Description
While working on my lint checker I noticed that some linters were missing their
pub uselint inlinting/mod.rsyet they still worked.Investigating turned up that I could comment out most of the remaining ones without breaking functionality.
Of the ones that I couldn't comment out, some are part of the linting infrastructure rather than individual linters. But others were just due to the test modules of those linters using inconsistent methods to
usetheir linters. Changing those fromuse::crate::linting:FooBartouse super::FooBarin line with the majority of linters made it possible to comment out most of those too.For new contributors this means one less step in developing their first linter. And should reduce confusion regarding why some linters did things in different ways.
Demo
How Has This Been Tested?
All tests still pass.
Checklist