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
chore: enable -Wunused
#3760
chore: enable -Wunused
#3760
Conversation
* cleanup compiler options in build.sbt
remove unused build targets from constructor and refactor common logic in tests
build.sbt
Outdated
// silence "The outer reference in this type test cannot be checked at run time." in mtags | ||
"-Wconf:src=.*(CompletionProvider|ArgCompletions|Completions|Keywords).scala&msg=The outer reference:silent" |
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.
I need to dive into this warning deeper, but for now, I silenced it to have 0 warnings in the problems tab.
val unused213 = "-Wunused" | ||
val unused3 = "-Wunused:all" |
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.
I think it's better to enable all of them and them eventually filter out noisy ones via Wconf
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.
Nice to see all the cleanup! Good job on this! Couple questions/suggestions.
metals/src/main/scala/scala/meta/internal/metals/codelenses/CodeLens.scala
Outdated
Show resolved
Hide resolved
metals/src/main/scala/scala/meta/internal/metals/formatting/IndentOnPaste.scala
Outdated
Show resolved
Hide resolved
metals/src/main/scala/scala/meta/internal/worksheets/WorksheetProvider.scala
Outdated
Show resolved
Hide resolved
metals/src/main/scala/scala/meta/internal/worksheets/WorksheetProvider.scala
Outdated
Show resolved
Hide resolved
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.
🚢 it.
Fatal warnings for |
Turned out we had a lot of unused warnings.