SonarQube Runner
  1. SonarQube Runner
  2. SONARUNNER-62

Allow empty list for "sonar.sources" property

    Details

    • Type: Improvement Improvement
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.3
    • Labels:
      None
    • Number of attachments :
      0

      Description

      This improvements is needed to be able to fully use Sonar Runner API in the Sonar Maven Plugin. Indeed, it is possible to have a Maven module with no sources (so with "src/main/java" empty) but only test files. In this case, we should allow to pass an empty list for "sonar.sources".

        Issue Links

          Activity

          Hide
          Fabrice Bellingard added a comment -

          Currently, if I set "sonar.sources=", it does not fail - which is good. However, it should fail if "sonar.sources" is not present at all.

          Show
          Fabrice Bellingard added a comment - Currently, if I set "sonar.sources=", it does not fail - which is good. However, it should fail if "sonar.sources" is not present at all.
          Hide
          Julien HENRY added a comment -

          In fact it was already possible in Sonar Runner 2.2.2 but now there will be some tests to enforce it.

          Show
          Julien HENRY added a comment - In fact it was already possible in Sonar Runner 2.2.2 but now there will be some tests to enforce it.
          Hide
          Fabrice Bellingard added a comment -

          Tested!

          Show
          Fabrice Bellingard added a comment - Tested!
          Hide
          Julien HENRY added a comment -

          No need for IT

          Show
          Julien HENRY added a comment - No need for IT

            People

            • Assignee:
              Julien HENRY
              Reporter:
              Fabrice Bellingard
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: