Java : Close curly brace

Must-share information (formatted with Markdown):

  • SQ: 7.9.0 LTS
  • Java Scanner

Hi,

In Sonar I’m having issues for the following rules, but they seem to conflict between them:

https://rules.sonarsource.com/java/RSPEC-1107

https://rules.sonarsource.com/java/RSPEC-1108

According to Java convention (from 1999… https://www.oracle.com/technetwork/java/codeconventions-150003.pdf) we should use the RSPEC-1107.

Why exist these 2 rules? I suppose that only one should be active in Quality Profiles - the one that fits our internal conventions…


Bingo!

Colin

1 Like

@Colin_SonarSource, thank you for your fast feedback

@Colin_SonarSource, just another question.

https://rules.sonarsource.com/java/RSPEC-1106

https://rules.sonarsource.com/java/RSPEC-1105

There should be only 1 rule activated in QualityProfiles, correct?