Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-23242

Check style incorrectly formatted - Intellij complains

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Invalid
    • Affects Version/s: master
    • Fix Version/s: None
    • Component/s: tooling
    • Labels:
      None

      Description

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

       

      - 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.
      

      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

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                bharathv Bharath Vissapragada
                Reporter:
                bharathv Bharath Vissapragada
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: