Uploaded image for project: 'SonarQube'
  1. SonarQube
  2. SONAR-11587

Make issue inclusions/exclusions evaluated using project relative path

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 7.6
    • Component/s: Issues, Scanner
    • Labels:
      None
    • Edition:
      Community
    • Production Notes:
      None

      Description

      Currently issue exclusions patterns are evaluated module per module, using module relative path. Since we are removing modules from the backend side, patterns defined at root-level should now be defined using root relative path. We should encourage users to update their patterns at root-level.

      To not break analysis without notice, we will:

      • start evaluating issue path patterns first using project relative path
      • continue to evaluate patterns at module level
      • if a file is matched at module level and was not matched at project level, we will log a warning to ask the user to update its configuration
        • if configuration is inherited from root configuration:

          Specifying module-relative paths at project level in the property 'sonar.issue.ignore.multicriteria' is deprecated. To continue matching files like 'src/main/Foo.java', update this property so that patterns refer to project-relative paths.

        • if configuration is specified at module level, we won't evaluate it, but log a warning:

          Specifying issue exclusions at module level is not supported anymore. Configure the property 'sonar.issue.ignore.multicriteria' and any other issue exclusions at project level.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                julien.henry Julien Henry
                Reporter:
                julien.henry Julien Henry
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Due:
                  Created:
                  Updated:
                  Resolved: