Please provide
- Operating system: win10
- SonarLint plugin version: 8.1.0.65508
- Programming language you’re coding in: java
- Is connected mode used:
- Connected to SonarCloud or SonarQube (and which version):
And a thorough description of the problem / question:
Not automatically adding parentheses when merging two ifs, resulting in logical errors.
For example:
Before:
if (true || false){
if(false) {
}
}
After:
if (true || false && (false)) {
}
It should be:
if ((true || false) && (false)) {
}