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

Backport "Export diagnostics (including unused warnings) to SemanticDB" #20315

Open
wants to merge 2 commits into
base: lts-3.3
Choose a base branch
from

Conversation

bjaglin
Copy link

@bjaglin bjaglin commented May 1, 2024

Backports #17835 from @tanishiking to the LTS branch. Fixes (again) #17535, so that library authors stuck on LTS can benefit from it, at the very least through scalafix & metals.

  • First commit is a cherry-pick of 2fa54e8, with conflicts handled automatically
  • Second commit is an update to the expected semanticdb output, needed due to
    • the drift in the input files with the main branch
    • an update in a warning message

@bjaglin bjaglin marked this pull request as ready for review May 1, 2024 18:26
@@ -1364,6 +1364,7 @@ Occurrences:

Diagnostics:
[30:12..30:17): [warning] unused explicit parameter
[48:13..48:13): [warning] `:` after symbolic operator is deprecated; use backticks around operator instead
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment on lines 3739 to 3741
[30:11..30:18): [warning] unset local variable, consider using an immutable val instead
[30:20..30:28): [warning] unset local variable, consider using an immutable val instead
[31:15..31:25): [warning] unset local variable, consider using an immutable val instead
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment on lines +1759 to +1761
[24:53..24:63): [warning] An inline given alias with a function value as right-hand side can significantly increase
generated code size. You should either drop the `inline` or rewrite the given with an
explicit `apply` method.
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

@tanishiking tanishiking left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM from my side 👍

Copy link
Member

@bishabosha bishabosha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tests look good

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants