[
https://issues.apache.org/jira/browse/MCHECKSTYLE-396?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17146441#comment-17146441
]
Linus Fernandes commented on MCHECKSTYLE-396:
---------------------------------------------
Or add another configuration skipEmptyFile which does not create a file if
there are no suppressions to be output.
You could add a similar option to the other tasks that log violations.
I've updated the checkstyleg script and the checkstyleg target in the
build.xml to reflect the expected workflow.
Checkstyle will not accept an empty file as input to the
SuppressionXPathFilter.
On Fri, 26 Jun 2020, 20:41 LINUS FERNANDES, <[email protected]>
> Add feature to generate Xpath suppressions as a goal
> ----------------------------------------------------
>
> Key: MCHECKSTYLE-396
> URL: https://issues.apache.org/jira/browse/MCHECKSTYLE-396
> Project: Maven Checkstyle Plugin
> Issue Type: New Feature
> Affects Versions: 3.1.1
> Reporter: Linus Fernandes
> Priority: Major
> Labels: XPath, checkstyle, suppress
>
> It would be nice to have an additional goal added to
> the plugin to generate Xpath suppressions as currently possible through the
> CLI using the -g switch.
>
> https://checkstyle.sourceforge.io/cmdline.html#Command_line_usage
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)