Uploaded image for project: 'SonarSlang'
  1. SonarSlang
  2. SONARSLANG-491

Add support for issue Suppression via annotations for Kotlin and Scala

    XMLWordPrintable

    Details

      Description

      Slang based languages do not support issues suppressions thanks to annotation, such asĀ @Suppress("kotlin:S1144"), @SuppressWarnings("kotlin:S1144").

      The goal of this ticket is to add the support for issue suppression for Kotlin and Scala. Note that the goal is to suppress only the issues raised by the analyzer itself, not from external ones.

      Technically, it requires:

      • Add support of annotation in Slang.
        Class, method, declaration (local + fields) and parameter annotations will be supported.
      • Update mapping for Scala and Kotlin to collect annotations.
        • Golang and ruby do not have annotations natively.
      • Implement an issue filtering mechanism in SLang (we can not rely on SonarQube issue filtering, since it is deprecated).
        • We can take inspiration from SONARJAVA-3241, implementing a similar mechanism.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              quentin.jaquier Quentin Jaquier
              Reporter:
              johann.beleites Johann Beleites
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Due:
                Created:
                Updated:
                Resolved: