SonarQube Plugins
  1. SonarQube Plugins
  2. SONARPLUGINS-1370

Add an administration console to the Switch Off Violation Plugin

    Details

    • Number of attachments :
      0

      Description

      Please add a project-level admin console for this plugin.
      Ideally it would go something like this, where underscores represent a text input:

      Resource Key: _________ Rule Key [dropdown of rules in applied ruleset], Range of lines: ___________
      [Add button]

      Possibly the "Range of lines" input would pop into visibility when "Resource Key" appeared to contain a specific filename - i.e. it ends with a dot and an extension (recognized extension for language specified in profile?)

        Issue Links

          Activity

          Hide
          Fabrice Bellingard added a comment -

          SONAR-3529 must be implemented first (target: Sonar 3.3)

          Show
          Fabrice Bellingard added a comment - SONAR-3529 must be implemented first (target: Sonar 3.3)
          Hide
          Fabrice Bellingard added a comment - - edited

          POC implemented in r6064.

          Still needs to be done:

          • Update POM to release 3.3 Sonar version
          • Uncomment code in SwitchOffViolationsPlugin.java
          • Define correct property names in Constants.java (instead of a1/a2/a3) and change names in the code accordingly
          • Update names and descriptions of the new properties in SwitchOffViolationsPlugin.java
          • Add tests for PatternsInitializer#loadPatternsFromNewProperties()
          Show
          Fabrice Bellingard added a comment - - edited POC implemented in r6064. Still needs to be done: Update POM to release 3.3 Sonar version Uncomment code in SwitchOffViolationsPlugin.java Define correct property names in Constants.java (instead of a1/a2/a3) and change names in the code accordingly Update names and descriptions of the new properties in SwitchOffViolationsPlugin.java Add tests for PatternsInitializer#loadPatternsFromNewProperties()
          Hide
          Fabrice Bellingard added a comment -

          Works well.

          Some minor improvements in the properties descriptions:

          • a space is missing between the "... are switched off." and "More information ..." (several places)
          • a dot is missing after "If not, then block ends at the end of file"
          Show
          Fabrice Bellingard added a comment - Works well. Some minor improvements in the properties descriptions: a space is missing between the "... are switched off." and "More information ..." (several places) a dot is missing after "If not, then block ends at the end of file"
          Hide
          Julien HENRY added a comment -

          Done.

          Show
          Julien HENRY added a comment - Done.
          Hide
          Fabrice Bellingard added a comment -

          Manually tested.

          Show
          Fabrice Bellingard added a comment - Manually tested.
          Hide
          Julien HENRY added a comment -

          ITs added.

          Show
          Julien HENRY added a comment - ITs added.

            People

            • Assignee:
              Julien HENRY
              Reporter:
              G. Ann Campbell
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: