Uploaded image for project: 'SonarPLSQL'
  1. SonarPLSQL
  2. SONARPLSQL-728

Do not fail the whole analysis when an exception is raised in a rule

    XMLWordPrintable

    Details

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

      Description

      Currently, the analysis fails when an exception is raised in a rule because of a bug (e.g. SONARPLSQL-727). In addition, it doesn't report which file failed to be analyzed.

      We should use the same Fail-Fast Strategy that we use for all plugins:

      • By default, do not fail the analysis if an exception is raised by a rule.
        The problematic file should be logged with the exception, skipped and the analysis should continue for other files.
      • It is possible to set sonar.internal.analysis.failFast property to true, to fail the analysis if a rule raises an exception.
        This parameter can be used for testing purposes, during the ruling and on peach for example.

        Attachments

          Activity

            People

            Assignee:
            quentin.jaquier Quentin Jaquier
            Reporter:
            pierre-yves.nicolas Pierre-Yves Nicolas
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Due:
              Created:
              Updated:
              Resolved: