Hi,
I’m trying to set up checkstyle checks for my project with the google style guide. But I allways receive different errors.
If I try it with the follwowing basic setup, everything works fine:
<?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="JavadocPackage"/>
<module name="TreeWalker">
<property name="tabWidth" value="4"/>
<module name="AvoidStarImport"/>
<module name="ConstantName"/>
</module>
</module>
But if I use the current google_checks.xml from github it doesnt work. I’ve tried different toolversions. But I only receive different errors.
For example:
toolversion= NOT SET:
ERROR: Unable to create a Checker: Property ‘fileExtensions’ in module Checker does not exist, please check the documentation
toolversion='6.2’
ERROR: Unable to create a Checker: Property ‘fileExtensions’ in module Checker does not exist, please check the documentation
toolversion='6.11’
ERROR: Unable to create a Checker: configLocation {…}, classpath {…}
toolversion='7.2’
ERROR: Unable to create a Checker: configLocation {…}, classpath {…}
my current configuration is;
checkstyle {
configFile = rootProject.file('google_checks.xml')
toolVersion = '7.2'
}
I’m using gradle 3.1 an the current google_checks.xml from git hub.
Is there anythin missing in my configuration? Where I can find a checkstyle version information for the google_checks.xml?
Regards,
Jürgen