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

Do not fail on external issues report missing

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.14
    • Component/s: External Analyzers
    • Labels:
      None

      Description

      In the context of multimodule project, the report path for external analyzer can be specified at top level. As a consequence the report might not exist for some submodules.

      The current behavior will lead to fail the analysis if such file is missing.  Instead, a log should be issued (with a warn level, this missing report might also be due to a misconfiguration) and the analysis should be carried on (not failing). 

      Note that this will lead to not fail in case of misconfiguration by the user. This seems acceptable for importing of external issues. 

      A way to mitigate this could be to identify if the property was configured in this module (and thus analysis should fail as it is a misconfiguration) or from a parent module (and thus it is better to just log a warning), but this is out of the scope of this fix.

       

       

       

       

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                alban.auzeill Alban Auzeill
                Reporter:
                nicolas.peru Nicolas Peru
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Due:
                  Created:
                  Updated:
                  Resolved: