You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ratis.apache.org by "Tsz Wo Nicholas Sze (JIRA)" <ji...@apache.org> on 2019/01/25 20:26:00 UTC

[jira] [Commented] (RATIS-476) checkstyle SuppressionCommentFilter and SuppressWithNearbyCommentFilter are in wrong module

    [ https://issues.apache.org/jira/browse/RATIS-476?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16752638#comment-16752638 ] 

Tsz Wo Nicholas Sze commented on RATIS-476:
-------------------------------------------

The new checkstyle config somehow does not work:
{code}
$mvn checkstyle:checkstyle
...
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-checkstyle-plugin:3.0.0:checkstyle (default-cli) on project ratis-common: An error has occurred in Checkstyle report generation.: Failed during checkstyle configuration: cannot initialize module TreeWalker - TreeWalker is not allowed as a parent of SuppressionCommentFilter -> [Help 1]
{code}

> checkstyle SuppressionCommentFilter and SuppressWithNearbyCommentFilter are in wrong module
> -------------------------------------------------------------------------------------------
>
>                 Key: RATIS-476
>                 URL: https://issues.apache.org/jira/browse/RATIS-476
>             Project: Ratis
>          Issue Type: Bug
>          Components: build
>            Reporter: Dinesh Chitlangia
>            Assignee: Dinesh Chitlangia
>            Priority: Major
>         Attachments: RATIS-476.00.patch
>
>
> The checkstyle file cannot be imported as-is when using a Checkstyle Plugin in an IDE.
>  It fails to load with following error:
> {code:java}
> org.infernus.idea.checkstyle.exception.CheckStylePluginException: <html><b>The Checkstyle rules file could not be parsed.</b><br>SuppressionCommentFilter is not allowed as a child in Checker<br>The file has been blacklisted for 60s.</html>
> {code}
> This jira aims to fix this so developers can setup checkstyle plugin easily to work on Ratis.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)