Uploaded image for project: 'Maven Checkstyle Plugin'
  1. Maven Checkstyle Plugin
  2. MCHECKSTYLE-305

Allow simultaneous use of <configLocation> and <checkstyleRules> as override

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 2.16
    • None
    • checkstyle:check
    • None

    Description

      It would be a nice addition to somehow allow the use of built-in config files, yet being able to override some of the settings without adding the whole configuration inline.

      My use case is the following: We use google_checks.xml as a baseline, but want to override the builtin <module name="Indentation"/> with its stock config. At the moment, I must input the whole google_checks.xml as inline configuration, or revert to bulding a specific artifact to include my slightly modified configuration as a dependency (I use multi module).

      Additionally, due to MCHECKSTYLE-304 I cannot even input the google_checks as is.

      In summary, it would allow tweaking the built-in configuration, without losing upstream evolution.

      Attachments

        Activity

          People

            Unassigned Unassigned
            smokeshield Pierre Maréchal
            Votes:
            4 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: