Hi there,
I've got a problem with $subj$, maybe someone encountered this as well.
I use checkstyle via maven plugin, my pom contains this:
In dependencies element:
<dependency>
<groupId>com.puppycrawl.tools</groupId>
<artifactId>checkstyle</artifactId>
<version>6.4.1</version>
</dependency>In plugins element:
<plugin>
<groupId>com.puppycrawl.tools</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<version>6.4.1</version>
<configuration>
<configLocation>checkstyle.xml</configLocation>
<encoding>UTF-8</encoding>
<consoleOutput>true</consoleOutput>
<failsOnError>true</failsOnError>
<linkXRef>false</linkXRef>
</configuration>
</plugin>My checkstyle.xml looks like this:
<?xml version="1.0"?>
<!DOCTYPE module PUBLIC
"-//Puppy Crawl//DTD Check Configuration 1.3//EN"
"http://www.puppycrawl.com/dtds/configuration_1_3.dtd">
<module name="Checker">
<module name="TreeWalker">
<module name="Indentation">
<property name="lineWrappingIndentation" value="8"/>
<property name="basicOffset" value="4"/>
</module>
</module>
</module>When I run checkstyle via maven:
mvn clean checkstyle:checkstyle , I get the following error:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-checkstyle-plugin:2.14:check (default-cli) on project saltstack-netapi-client-java: Failed during checkstyle configuration: cannot initialize module com.puppycrawl.tools.checkstyle.TreeWalker - Property 'lineWrappingIndentation' in module com.puppycrawl.tools.checkstyle.checks.indentation.Indentation does not exist, please check the documentation -> [Help 1]
I also used various prefixes to module names "com.puppycrawl....." to match the package hierarchy but with no sucess. I also decompiled the Indentation class bytecode to check if there is lineWrappingIndentation attribute and it's really there, so I don't know where the problem can be.
Thanks for any feedback!
Cheers,
Frank.