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

FP S5960 when analyzing package containing ".it."

    XMLWordPrintable

    Details

    • Type: False-Positive
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Rules
    • Labels:
      None

      Description

      Currently, S5960 does not raise issues in a package containing "test|junit|assert".

      We should also exclude packages containing a package name part exactly equals to "it".

      But not the first one (Italian domain) like in "it.ozimov".
      Only packages like:

      • com.abc.*it*
      • com.abc.*it*.validation

      Exclusion could be:

      "test|junit|assert|\\.it(?:\\.|$)"
      

       
      See: community: Rule S5960: Assertions should not be used in production code does not consider...

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            alban.auzeill Alban Auzeill
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: