I am using:
- Ubuntu 22.04
- SonarLint 10.7.0.78874 in IntelliJ 2024.1.4
- Java
- Not connected to Qube or anything, just running Lint locally.
Problem:
Apache License Headers are reported as commented-out code:
// Licensed under the Apache License, Version 2.0 (the "License");
The line is reported as:
java:S125
Sections of code should not be commented out
Reference: supposedly this has been fixed in 2022 (for C++ in SonarCloud):
However, I don’t think this ever worked for me in Java.
Any suggestions besides disabling S125 for the whole code base?