Skip to content

[MCHECKSTYLE-362] Add suppressionFileOptional configuration option to allow builds if file in suppressionsLocation is missing #274

@jira-importer

Description

@jira-importer

Marcus Watkins opened MCHECKSTYLE-362 and commented

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.


1 votes, 3 watchers

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestpriority:minorMinor loss of function, or other problem where easy workaround is present

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions