-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
[Semester Project] Add new front-end phase for unused entities and add support for unused imports #16157
Merged
Merged
[Semester Project] Add new front-end phase for unused entities and add support for unused imports #16157
Changes from all commits
Commits
Show all changes
54 commits
Select commit
Hold shift + click to select a range
27bfda8
Report simple unused import
PaulCoral 93ba6c9
Merge branch 'lampepfl:main' into feature/linter/unused
PaulCoral f2c1551
Add warnings for unused wildcard imports
PaulCoral d6fa4cb
Add tests and fixes for unused warning
PaulCoral 9f75334
Add warning unused given imports
PaulCoral b131601
Merge branch 'lampepfl:main' into feature/linter/unused
PaulCoral e37c2f9
Add tests for inline method
PaulCoral 2d6da62
Add an `isRunnable` for `CheckUnused`
PaulCoral 617155d
Merge branch 'lampepfl:main' into feature/linter/unused
PaulCoral 0801dd6
Ignore exclusion when unused import
PaulCoral a6e7d05
Merge branch 'lampepfl:main' into feature/linter/unused
PaulCoral e1188b6
Add "-Wunused:locals" warning support
PaulCoral 5447cdb
Add "-Wunused:privates" warning option
PaulCoral 950e7de
Fix CheckUnused phasename
PaulCoral 9ad1daa
Merge branch 'lampepfl:main' into feature/linter/unused
PaulCoral 5ecb0eb
fix overlapping warning
PaulCoral a1c2bae
Merge branch 'lampepfl:main' into feature/linter/unused
PaulCoral f993782
Fix warning location
PaulCoral b2fd8cb
Add -Wunused:params,explicits,implicits,patvars
PaulCoral 368748a
Merge branch 'lampepfl:main' into feature/linter/unused
PaulCoral e69c4a3
Merge branch 'feature/linter/unused' of github.com:PaulCoral/dotty in…
PaulCoral 8ac97b3
Fix requested changes, add new tests
PaulCoral 892621b
Annotation usage, allow unsed Self, add tests
PaulCoral 6d8d20d
Refactor CheckUnused, fix pkg false negative
PaulCoral 412412c
No -Wunused:imports for language imports
PaulCoral f354b96
Clean CheckUnused phase code, add doc+comments
PaulCoral d41c6dd
Remove report unused implicit imports
PaulCoral 95c8a40
Revert to unused implicit check, also synthetics
PaulCoral b2f0fa1
Add warn Annotated Types and "new" kw
PaulCoral 82290c8
Fix unused imports in import stmt
PaulCoral 5a755dd
Reports more import alternatives
PaulCoral 2ed1f1f
Warn unused Imports methods overload
PaulCoral 8a91af1
Add an helpful message for `-W` option
PaulCoral ca8dbaf
Merge branch 'feature/linter/unused' of github.com:PaulCoral/dotty in…
PaulCoral 426d34a
Fix typo in help -W
PaulCoral 5ab55f8
Fix isBlank not member of String on CI
PaulCoral 0cb2af0
Add `-Wunused:strict-no-implicit-warn` warning option
PaulCoral d1f9441
Fix test i15503j
PaulCoral e158a9f
Add better support for unused renamed import
PaulCoral e2b6b61
Clean, refine scope, add comments
PaulCoral b0790d1
Refactor CheckUnused into a MiniPhase
PaulCoral 7f04ce3
Add support for @annotation.unused
PaulCoral 779ec7d
Add support for trivial body
PaulCoral d37d99e
Fix the import precedence in -Wunused:imports
PaulCoral ae24d64
Improve -Wunused:locals
PaulCoral 527aa31
Fix -Wunused:privates trait accessor
PaulCoral bfa20a1
Fix -Wunused:locals,privates with recursive
PaulCoral c70fa68
Fixes for -Wunused:params
PaulCoral 7de90b3
Add better support for trivial methods -Wunused
PaulCoral c89e27c
Merge branch 'lampepfl:main' into feature/linter/unused
PaulCoral 422ecb8
Merge branch 'lampepfl:main' into feature/linter/unused
PaulCoral 4a06bc6
Remove unused method in CheckUnused
PaulCoral 1db9040
Merge branch 'feature/linter/unused' of github.com:PaulCoral/dotty in…
PaulCoral 08f807c
Make -Wunused:patvars to unsafe
PaulCoral File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks like a bit of a hack... But I think we can address this in the future, there are probably other things that could be cleaned up in the Settings implementation at some point.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, this was a dirty fix, just to give basic documentation for this new feature. I can maybe find a better solution if I have some time once I fixed the main parts of the PR.