SonarQube Plugins
  1. SonarQube Plugins
  2. SONARPLUGINS-3234

When using 'reuseReport' mode, plugin should verbosely fail if file not found

    Details

    • Number of attachments :
      0

      Description

      If the plugin is configured to run in 'reuseReport' mode, but the report path is not provided or the file(s) are not found, the plugin should not just quietly fail – it should instead be very obvious that there is a problem.

      07:54:29.004 INFO - Sensor com.wrightfully.sonar.plugins.dotnet.resharper.ReSharperSensor$CSharpRegularReSharperSensor@1125fac...
      07:54:29.005 DEBUG - No file found at location(s) .sonar/resharper-report.xml
      07:54:29.005 INFO - Reusing ReSharper reports:
      07:54:29.005 INFO - Sensor com.wrightfully.sonar.plugins.dotnet.resharper.ReSharperSensor$CSharpRegularReSharperSensor@1125fac done: 1 ms

        Activity

        Hide
        John Wright added a comment -

        Now correctly throws an exception, which looks like this:

        INFO: ------------------------------------------------------------------------
        INFO: EXECUTION FAILURE
        INFO: ------------------------------------------------------------------------
        Total time: 26.569s
        Final Memory: 13M/112M
        INFO: ------------------------------------------------------------------------
        ERROR: Error during Sonar runner execution
        ERROR: Unable to execute Sonar
        ERROR: Caused by: No ReSharper reports found. Make sure to set sonar.resharper.report.path

        Show
        John Wright added a comment - Now correctly throws an exception, which looks like this: INFO: ------------------------------------------------------------------------ INFO: EXECUTION FAILURE INFO: ------------------------------------------------------------------------ Total time: 26.569s Final Memory: 13M/112M INFO: ------------------------------------------------------------------------ ERROR: Error during Sonar runner execution ERROR: Unable to execute Sonar ERROR: Caused by: No ReSharper reports found. Make sure to set sonar.resharper.report.path
        Show
        John Wright added a comment - https://github.com/SonarCommunity/sonar-dotnet-resharper/commit/247cc2ab3359b9f35d3d92219ff01fcbbb7ba631

          People

          • Assignee:
            John Wright
            Reporter:
            John Wright
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: