You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Bharath Vissapragada (Jira)" <ji...@apache.org> on 2019/11/01 22:03:00 UTC

[jira] [Updated] (HBASE-23242) Check style incorrectly formatted - Intellij complains

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

Bharath Vissapragada updated HBASE-23242:
-----------------------------------------
    Description: 
 I get the following two errors when I try to import the checkstyle file into CheckStyle-IDEA plugin. Interestingly mvn target works ok.

 
{noformat}
- com.puppycrawl.tools.checkstyle.api.CheckstyleException: cannot initialize module TreeWalker - TreeWalker is not allowed as a parent of LineLength Please review 'Parent Module' section for this Check in web documentation if Check is standard.
{noformat}
As per the documentation [1]
 - LineLength's parent should be Checker.

Fixing this parent-child relationship, I was able to import the file correctly. Will attach the patch shortly.

[1]https://checkstyle.sourceforge.io/config_sizes.html

  was:
 I get the following two errors when I try to import the checkstyle file into CheckStyle-IDEA plugin. Interestingly mvn target works ok.

 {noformat}
- com.puppycrawl.tools.checkstyle.api.CheckstyleException: cannot initialize module TreeWalker - TreeWalker is not allowed as a parent of LineLength Please review 'Parent Module' section for this Check in web documentation if Check is standard.

- com.puppycrawl.tools.checkstyle.api.CheckstyleException: MethodLength is not allowed as a child in Checker
{noformat}

As per the documentation [1]

- LineLength's parent should be Checker.
- MethodLength's parent should be TreeWalker.

Fixing these two relationships, I was able to import the file correctly. Will attach the patch shortly.

[1]https://checkstyle.sourceforge.io/config_sizes.html



> Check style incorrectly formatted - Intellij complains
> ------------------------------------------------------
>
>                 Key: HBASE-23242
>                 URL: https://issues.apache.org/jira/browse/HBASE-23242
>             Project: HBase
>          Issue Type: Bug
>          Components: tooling
>    Affects Versions: master
>            Reporter: Bharath Vissapragada
>            Assignee: Bharath Vissapragada
>            Priority: Minor
>
>  I get the following two errors when I try to import the checkstyle file into CheckStyle-IDEA plugin. Interestingly mvn target works ok.
>  
> {noformat}
> - com.puppycrawl.tools.checkstyle.api.CheckstyleException: cannot initialize module TreeWalker - TreeWalker is not allowed as a parent of LineLength Please review 'Parent Module' section for this Check in web documentation if Check is standard.
> {noformat}
> As per the documentation [1]
>  - LineLength's parent should be Checker.
> Fixing this parent-child relationship, I was able to import the file correctly. Will attach the patch shortly.
> [1]https://checkstyle.sourceforge.io/config_sizes.html



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