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

No way to exclude/include a file not located in a directory

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.7
    • Component/s: Exclusions/Inclusions
    • Labels:
      None

      Description

      Example: https://github.com/SonarSource/sonar-examples/tree/master/projects/languages/java/sonar-runner/java-sonar-runner-simple

      There is only one source file in the 'src' folder: Helloworld.java. This class is not in any package.

      sonar.inclusions=Hello*.*

      => nothing is analyzed; Helloworld.java should be analyzed

      sonar.inclusions=**/Hello*.*

      => the file is analyzed

        Attachments

          Activity

            People

            Assignee:
            henryju OLD - Julien HENRY
            Reporter:
            racodond David Racodon
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: