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

Unused values reported out of order #13051

Open
som-snytt opened this issue Oct 26, 2024 · 0 comments
Open

Unused values reported out of order #13051

som-snytt opened this issue Oct 26, 2024 · 0 comments
Labels
Milestone

Comments

@som-snytt
Copy link

Scala version: 2.13.15

Under -Wnonunit-statement, for some if/else or blocks, warnings are presented "unsorted".

javac/JavaParsers.scala:1029:13: unused value
javac/JavaParsers.scala:1126:13: unused value
javac/JavaParsers.scala:1106:17: unused value

Problem

In order would be more convenient.

It's probably due to traversal order, but I don't know why all such warnings aren't sorted by position.

For cascading errors, you want the underlying cause first.

@SethTisue SethTisue added the lint label Nov 6, 2024
@SethTisue SethTisue added this to the Backlog milestone Nov 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants