Uploaded image for project: 'SonarJava'
  1. SonarJava
  2. SONARJAVA-57

Make it possible to use rule keys as parameters of the Java annotation @SuppressWarnings

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.8
    • Component/s: Exclusions
    • Labels:

      Description

      The annotation @SuppressWarnings is supported since v.2.5 but it accepts only the parameter "all" to exclude any violations (see SONAR-1760).

      It should accept a list of rule keys to exclude only violations relating to a subset of rules :

      @SuppressWarnings("FIRST_RULE", "SECOND_RULE")
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              benzonico OLD - Nicolas Peru
              Reporter:
              simon.brandhof Simon Brandhof (Inactive)
              Votes:
              43 Vote for this issue
              Watchers:
              34 Start watching this issue

                Dates

                Due:
                Created:
                Updated:
                Resolved: