-
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
Commits on Sep 30, 2022
-
- report unused named import - no given or wildcard import - issue with method reference (e.g. apply, factory, ...)
Configuration menu - View commit details
-
Copy full SHA for 27bfda8 - Browse repository at this point
Copy the full SHA 27bfda8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 93ba6c9 - Browse repository at this point
Copy the full SHA 93ba6c9View commit details
Commits on Oct 4, 2022
-
Add warnings for unused wildcard imports
Emits a warning when none of element of a wildcard ('_') import is used (i.e. a "unused import" warning).
Configuration menu - View commit details
-
Copy full SHA for f2c1551 - Browse repository at this point
Copy the full SHA f2c1551View commit details
Commits on Oct 8, 2022
-
Add tests and fixes for unused warning
- Add various tests for unused warnings - Fix warning not emitted when imported object is used another scope
Configuration menu - View commit details
-
Copy full SHA for d6fa4cb - Browse repository at this point
Copy the full SHA d6fa4cbView commit details
Commits on Oct 9, 2022
-
Add warning unused given imports
- Emit warning for unused given imports - Emit warning for wildcard imports when only given instances are used. ``` import SomeGivenImports.given // OK import SomeGivenImports._ // error ```
Configuration menu - View commit details
-
Copy full SHA for 9f75334 - Browse repository at this point
Copy the full SHA 9f75334View commit details -
Configuration menu - View commit details
-
Copy full SHA for b131601 - Browse repository at this point
Copy the full SHA b131601View commit details
Commits on Oct 10, 2022
-
Configuration menu - View commit details
-
Copy full SHA for e37c2f9 - Browse repository at this point
Copy the full SHA e37c2f9View commit details
Commits on Oct 11, 2022
-
Add an
isRunnable
forCheckUnused
- Add an `isRunnable` methode to the `CheckUnused` phase to avoid unecessary costly checks (suggested by @bishabosha) - Move neg compilation tests out of folder
Configuration menu - View commit details
-
Copy full SHA for 2d6da62 - Browse repository at this point
Copy the full SHA 2d6da62View commit details
Commits on Oct 14, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 617155d - Browse repository at this point
Copy the full SHA 617155dView commit details -
Ignore exclusion when unused import
- Do not emit any warning for import exclusion. - These are hard to interpret. These can be placed on purpose to avoid future usage of a symbol.
Configuration menu - View commit details
-
Copy full SHA for 0801dd6 - Browse repository at this point
Copy the full SHA 0801dd6View commit details
Commits on Oct 23, 2022
-
Configuration menu - View commit details
-
Copy full SHA for a6e7d05 - Browse repository at this point
Copy the full SHA a6e7d05View commit details -
Add "-Wunused:locals" warning support
- Add a compiler settings for unused local definition - Add check for unused local variable in CheckUnused phase - Add some "neg-custom-args/fatal-warnings" checks for unused locals definition
Configuration menu - View commit details
-
Copy full SHA for e1188b6 - Browse repository at this point
Copy the full SHA e1188b6View commit details
Commits on Oct 24, 2022
-
Add "-Wunused:privates" warning option
- Add the "privates" option for "-Wunused" - Implement "unused privates member" checks in "CheckUnused" phase - Add a test suit for the previous point
Configuration menu - View commit details
-
Copy full SHA for 5447cdb - Browse repository at this point
Copy the full SHA 5447cdbView commit details
Commits on Oct 25, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 950e7de - Browse repository at this point
Copy the full SHA 950e7deView commit details
Commits on Oct 28, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 9ad1daa - Browse repository at this point
Copy the full SHA 9ad1daaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5ecb0eb - Browse repository at this point
Copy the full SHA 5ecb0ebView commit details
Commits on Oct 31, 2022
-
Configuration menu - View commit details
-
Copy full SHA for a1c2bae - Browse repository at this point
Copy the full SHA a1c2baeView commit details -
- Fix the position of unused warning (unused locals, unused privates) to the declaration name. This avoids hidden overlapping warning
Configuration menu - View commit details
-
Copy full SHA for f993782 - Browse repository at this point
Copy the full SHA f993782View commit details
Commits on Nov 6, 2022
-
Add -Wunused:params,explicits,implicits,patvars
- Add warnings for unused parmaters (explicit, implicit) - Add warnings for unused pattern variables (in match case) - Add tests suits (fatal-warnings)
Configuration menu - View commit details
-
Copy full SHA for b2fd8cb - Browse repository at this point
Copy the full SHA b2fd8cbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 368748a - Browse repository at this point
Copy the full SHA 368748aView commit details -
Merge branch 'feature/linter/unused' of github.com:PaulCoral/dotty in…
…to feature/linter/unused
Configuration menu - View commit details
-
Copy full SHA for e69c4a3 - Browse repository at this point
Copy the full SHA e69c4a3View commit details
Commits on Nov 17, 2022
-
Fix requested changes, add new tests
- Fix minor changes - Add more tests - -Wunused:nowarn does not run the CheckUnused phase fix nowarn clean useless val
Configuration menu - View commit details
-
Copy full SHA for 8ac97b3 - Browse repository at this point
Copy the full SHA 8ac97b3View commit details -
Annotation usage, allow unsed Self, add tests
- Register annotation usage, so (i.e. @tailrec) is not reported - Allow unsed self name (`self:A =>` members) - Add tests suggested in the PR discussion thread
Configuration menu - View commit details
-
Copy full SHA for 892621b - Browse repository at this point
Copy the full SHA 892621bView commit details -
Refactor CheckUnused, fix pkg false negative
- Refactor the sets of defs and usage symbols. This results in less objects created and less push-pop scope. - Fix false negative for imports in the same package
Configuration menu - View commit details
-
Copy full SHA for 6d8d20d - Browse repository at this point
Copy the full SHA 6d8d20dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 412412c - Browse repository at this point
Copy the full SHA 412412cView commit details
Commits on Nov 18, 2022
-
Configuration menu - View commit details
-
Copy full SHA for f354b96 - Browse repository at this point
Copy the full SHA f354b96View commit details
Commits on Nov 23, 2022
-
Remove report unused implicit imports
- Named import pointing to an implicit - Given imports `import foo.bar.given` - Add new tests, remove the ones on implicit reporting
Configuration menu - View commit details
-
Copy full SHA for d41c6dd - Browse repository at this point
Copy the full SHA d41c6ddView commit details
Commits on Nov 24, 2022
-
Revert to unused implicit check, also synthetics
- Check implicit and given imports - Adapt check to some synthetic (@main, package object) - Add new tests to support these features
Configuration menu - View commit details
-
Copy full SHA for 95c8a40 - Browse repository at this point
Copy the full SHA 95c8a40View commit details
Commits on Dec 5, 2022
-
Add warn Annotated Types and "new" kw
- Annotated types are reported as used - Some times class constructor "this" is used instead of apply It is registered as used - Some new tests
Configuration menu - View commit details
-
Copy full SHA for b2f0fa1 - Browse repository at this point
Copy the full SHA b2f0fa1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 82290c8 - Browse repository at this point
Copy the full SHA 82290c8View commit details -
Reports more import alternatives
- Reports more import alternatives (e.g. overloaded methods)
Configuration menu - View commit details
-
Copy full SHA for 5a755dd - Browse repository at this point
Copy the full SHA 5a755ddView commit details -
Warn unused Imports methods overload
- overloaded where not well resolved and thus not reported - also add a tests
Configuration menu - View commit details
-
Copy full SHA for 2ed1f1f - Browse repository at this point
Copy the full SHA 2ed1f1fView commit details
Commits on Dec 12, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 8a91af1 - Browse repository at this point
Copy the full SHA 8a91af1View commit details -
Merge branch 'feature/linter/unused' of github.com:PaulCoral/dotty in…
…to feature/linter/unused
Configuration menu - View commit details
-
Copy full SHA for ca8dbaf - Browse repository at this point
Copy the full SHA ca8dbafView commit details -
Configuration menu - View commit details
-
Copy full SHA for 426d34a - Browse repository at this point
Copy the full SHA 426d34aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5ab55f8 - Browse repository at this point
Copy the full SHA 5ab55f8View commit details
Commits on Dec 13, 2022
-
Add
-Wunused:strict-no-implicit-warn
warning option- Add the new -Wunused:strict-no-implicit-warn flag - Add a test suit i15503j
Configuration menu - View commit details
-
Copy full SHA for 0cb2af0 - Browse repository at this point
Copy the full SHA 0cb2af0View commit details -
Configuration menu - View commit details
-
Copy full SHA for d1f9441 - Browse repository at this point
Copy the full SHA d1f9441View commit details -
Configuration menu - View commit details
-
Copy full SHA for e158a9f - Browse repository at this point
Copy the full SHA e158a9fView commit details
Commits on Dec 14, 2022
-
Clean, refine scope, add comments
- Tidy the code (space, newline,...) - Refine the scope by making more things private - Add explaination and doc comments (mostly to help reviewer)
Configuration menu - View commit details
-
Copy full SHA for e2b6b61 - Browse repository at this point
Copy the full SHA e2b6b61View commit details
Commits on Dec 16, 2022
-
Refactor CheckUnused into a MiniPhase
- Add prepare and tranform method from MiniPhase - Keep previous implementation for cases not covered by MiniPhase traversal (Mostly in the type tree)
Configuration menu - View commit details
-
Copy full SHA for b0790d1 - Browse repository at this point
Copy the full SHA b0790d1View commit details
Commits on Dec 26, 2022
-
Add support for @annotation.unused
- Does not report defs with @unused - Update the test suit
Configuration menu - View commit details
-
Copy full SHA for 7f04ce3 - Browse repository at this point
Copy the full SHA 7f04ce3View commit details -
- Params of method with trivial body are not reported as unused - Update the test suit
Configuration menu - View commit details
-
Copy full SHA for 779ec7d - Browse repository at this point
Copy the full SHA 779ec7dView commit details
Commits on Dec 27, 2022
-
Fix the import precedence in -Wunused:imports
- Wildcard import are reported before named ones - Update the test suit
Configuration menu - View commit details
-
Copy full SHA for d37d99e - Browse repository at this point
Copy the full SHA d37d99eView commit details -
Configuration menu - View commit details
-
Copy full SHA for ae24d64 - Browse repository at this point
Copy the full SHA ae24d64View commit details -
Configuration menu - View commit details
-
Copy full SHA for 527aa31 - Browse repository at this point
Copy the full SHA 527aa31View commit details -
Configuration menu - View commit details
-
Copy full SHA for bfa20a1 - Browse repository at this point
Copy the full SHA bfa20a1View commit details
Commits on Dec 29, 2022
-
- Also add a (adapted) Scala 2 tests suits
Configuration menu - View commit details
-
Copy full SHA for c70fa68 - Browse repository at this point
Copy the full SHA c70fa68View commit details
Commits on Jan 3, 2023
-
Add better support for trivial methods -Wunused
- Method having a return type of "SingleType" (as named in Scala 2) are considered trivial (i.e. Nil, object X, object Y, None, ...) - Update test suits
Configuration menu - View commit details
-
Copy full SHA for 7de90b3 - Browse repository at this point
Copy the full SHA 7de90b3View commit details -
Configuration menu - View commit details
-
Copy full SHA for c89e27c - Browse repository at this point
Copy the full SHA c89e27cView commit details
Commits on Jan 4, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 422ecb8 - Browse repository at this point
Copy the full SHA 422ecb8View commit details
Commits on Jan 5, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 4a06bc6 - Browse repository at this point
Copy the full SHA 4a06bc6View commit details -
Merge branch 'feature/linter/unused' of github.com:PaulCoral/dotty in…
…to feature/linter/unused
Configuration menu - View commit details
-
Copy full SHA for 1db9040 - Browse repository at this point
Copy the full SHA 1db9040View commit details -
Make -Wunused:patvars to unsafe
- Suppress -Wunused:patvars - Replace by -Wunused:unsafe-warn-patvars
Configuration menu - View commit details
-
Copy full SHA for 08f807c - Browse repository at this point
Copy the full SHA 08f807cView commit details