Sonar

Provide a generic Sonar way to tag the source code in order to suppress a violation : //NOSONAR

Details

  • Type: New Feature New Feature
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: 1.12
  • Component/s: Rules, Squid
  • Labels:
    None
  • Number of attachments :
    0

Description

With some rule engines like Findbugs, Toad codexpert, ... there is no way to suppress a violation (a false positive). Could be good thing to provide a basic and multi-languages way to suppress such violations with a //NOSONAR tag.

The //NOSONAR would be considered as a "info" violation on a given line and no more violations could be inserted by any rule engines at this given line.

Issue Links

Activity

Hide
Freddy Mallet added a comment -

Squid is no able to analyze comment and detect NOSONAR tag to provide Sonar a way to suppress rule violations. This information is available on SquidFile object with help of "Set<Integer> getNoSonarTagLines()" or "boolean isThereNoSonarTagLine(int lineNumber)" methods.

Show
Freddy Mallet added a comment - Squid is no able to analyze comment and detect NOSONAR tag to provide Sonar a way to suppress rule violations. This information is available on SquidFile object with help of "Set<Integer> getNoSonarTagLines()" or "boolean isThereNoSonarTagLine(int lineNumber)" methods.

People

Vote (4)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: