Must-share information (formatted with Markdown):
- which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
SonarLint 8.2.0.68615 - how is SonarQube deployed: zip, Docker, Helm
n/a - what are you trying to achieve
n/a - what have you tried so far to achieve this
n/a
For rule "Preconditions" and logging arguments should not require evaluation java:S2629
one of the examples of compliant solutions is:
LOG.error("Unable to open file {0}", csvPath, e);
But using such violates different rule Printf-style format strings should be used correctly java:S3457
.
If I understand it correctly, it should be:
LOG.error(new ParameterizedMessage("Unable to open file {}", csvPath), e);