You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Dipti Desai (JIRA)" <ji...@codehaus.org> on 2013/04/18 17:29:52 UTC

[jira] (MCHECKSTYLE-186) FileTabCharacter check not working

    [ https://jira.codehaus.org/browse/MCHECKSTYLE-186?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=323906#comment-323906 ] 

Dipti Desai commented on MCHECKSTYLE-186:
-----------------------------------------

This has been resolved. You may close this. Thanks for all your help.
I am not sure what exactly fixed the problem but I poked around a bit in the maven checkstyle code and got the exact default expression for includes and excludes and modified and used that in my POMs. Also, upgraded to 2.10.
                
> FileTabCharacter check not working
> ----------------------------------
>
>                 Key: MCHECKSTYLE-186
>                 URL: https://jira.codehaus.org/browse/MCHECKSTYLE-186
>             Project: Maven 2.x Checkstyle Plugin
>          Issue Type: Bug
>            Reporter: Dipti Desai
>            Priority: Minor
>
> The FileTabCharacter check doesnt seem to work. Below is my config:
> {code:xml}
> <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>
> {code}
> I have my xml files - pom.xml and checkstyle config xml containing tabs but none of them are flagged as violations.
> Some additional info - my plugin config looks like this:
> {code:xml}
>         <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>
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira