Filetabcharacter check does not work for checkstyle

Checking FileTabCharacter does not work for me. Below is my configuration:

<module name="Checker"> .. .. <!-- No TAB characters in the source code --> <module name="FileTabCharacter"> <property name="eachLine" value="true" /> <property name="fileExtensions" value="java,xml" /> </module> .. .. <module name="TreeWalker"> .. .. </module> </module> 

I have my xml files - pom.xml and checkstyle config xml containing tabs, but none of them are marked as violations.

Additional information - my plugin configuration looks like this:

  <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-checkstyle-plugin</artifactId> <version>2.9.1</version> <executions> <execution> <phase>verify</phase> <goals> <goal>check</goal> </goals> </execution> </executions> <configuration> <configLocation>checkstyle/kepler-checkstyle-config.xml</configLocation> <suppressionsLocation>${project.parent.basedir}${file.separator}checkstyle/kepler-checkstyle-suppressions.xml</suppressionsLocation> </configuration> </plugin> 

Please, help.

+4
source share

All Articles