[ 
https://issues.apache.org/jira/browse/HADOOP-16771?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andras Bokor updated HADOOP-16771:
----------------------------------
    Description: 
After upgrading to the latest IDEA the IDE throws error message when I try to 
load the checkstyle xml
{code:java}
TreeWalker is not allowed as a parent of LineLength Please review 'Parent 
Module' section for this Check in web documentation if Check is standard.{code}
[This is caused by some backward incompatible changes in checkstyle source 
code|https://github.com/checkstyle/checkstyle/issues/2116]

IDEA uses checkstyle 8.26

We should upgrade our checkstyle version to be compatible with IDEA's 
checkstyle plugin.
 Also it's a good time to upgrade maven-checkstyle-plugin as well to brand new 
3.1.

  was:
After upgrading to the latest IDEA the IDE throws error messages in every few 
minutes like
{code:java}
The Checkstyle rules file could not be parsed.
SuppressionCommentFilter is not allowed as a child in Checker
The file has been blacklisted for 60s.{code}
This is caused by some backward incompatible changes in checkstyle source code:
 [http://checkstyle.sourceforge.net/releasenotes.html]
 * 8.1: Make SuppressionCommentFilter and SuppressWithNearbyCommentFilter 
children of TreeWalker.
 * 8.2: remove FileContentsHolder module as FileContents object is available 
for filters on TreeWalker in TreeWalkerAudit Event.

IDEA uses checkstyle 8.8

We should upgrade our checkstyle version to be compatible with IDEA's 
checkstyle plugin.
 Also it's a good time to upgrade maven-checkstyle-plugin as well to brand new 
3.0.


> Checkstyle version is not compatible with IDEA's checkstyle plugin
> ------------------------------------------------------------------
>
>                 Key: HADOOP-16771
>                 URL: https://issues.apache.org/jira/browse/HADOOP-16771
>             Project: Hadoop Common
>          Issue Type: Improvement
>            Reporter: Andras Bokor
>            Assignee: Andras Bokor
>            Priority: Major
>             Fix For: 3.1.0, 3.0.4
>
>
> After upgrading to the latest IDEA the IDE throws error message when I try to 
> load the checkstyle xml
> {code:java}
> TreeWalker is not allowed as a parent of LineLength Please review 'Parent 
> Module' section for this Check in web documentation if Check is 
> standard.{code}
> [This is caused by some backward incompatible changes in checkstyle source 
> code|https://github.com/checkstyle/checkstyle/issues/2116]
> IDEA uses checkstyle 8.26
> We should upgrade our checkstyle version to be compatible with IDEA's 
> checkstyle plugin.
>  Also it's a good time to upgrade maven-checkstyle-plugin as well to brand 
> new 3.1.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to