-
Notifications
You must be signed in to change notification settings - Fork 135
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
Implement LoggerInterpolationConsumesThrowable #1886
Conversation
Flag as an ERROR when logging statements fail to produce a stack trace due to excessive slf4j-style interpolation placeholders.
Generate changelog in
|
return Description.NO_MATCH; | ||
} | ||
int extraPlaceholders = stringPlaceholders - nonThrowableParameters; | ||
return buildDescription(tree) |
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.
There are a few common patterns we could likely auto-fix, but enough cases we can't that I haven't attempted to implement one.
If we find a lot of failures ending with {}
or : {}
it may be reasonable to automatically update them.
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.
Might be interesting to track how many excavators fail to upgrade with this check, given we can't autofix them
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!
Released 4.21.0 |
###### _excavator_ is a bot for automating changes across repositories. Changes produced by the roomba/latest-baseline-oss check. # Release Notes ## 4.21.0 | Type | Description | Link | | ---- | ----------- | ---- | | Improvement | error-prone LoggerInterpolationConsumesThrowable: Flag as an ERROR when logging statements fail to produce a stack trace due to excessive slf4j-style interpolation placeholders. | palantir/gradle-baseline#1886 | To enable or disable this check, please contact the maintainers of Excavator.
Flag as an ERROR when logging statements fail to produce a
stack trace due to excessive slf4j-style interpolation
placeholders.
==COMMIT_MSG==
error-prone LoggerInterpolationConsumesThrowable: Flag as an ERROR when logging statements fail to produce a stack trace due to excessive slf4j-style interpolation placeholders.
==COMMIT_MSG==