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

Add suppressionFileOptional configuration option to allow builds if file in suppressionsLocation is missing

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • None
    • None

    Description

      We use a parent pom containing our checkstyle configuration but have a few projects with generated code that we'd like to exclude from checkstyle rules. This means we have to copy the whole checkstyle configuration into these projects' poms with a suppressionsLocation because adding it to the parent would fail the builds in projects where that file is missing.

      Checkstyle itself has an optional flag on SuppressionFilter that allows it to continue if the supplied file is missing.

      We'd like to extend the Maven Checkstyle Plugin to have similar functionality by way of a suppressionFileOptional configuration option that would simply skip supplying the file value to checkstyle if the file fails to resolve.

      If this sounds like something you would accept let us know and we'll whip it up and submit a PR.

      Attachments

        Activity

          People

            Unassigned Unassigned
            marwatk Marcus Watkins
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: