Uploaded image for project: 'Maven Checkstyle Plugin'
  1. Maven Checkstyle Plugin
  2. MCHECKSTYLE-186

FileTabCharacter check not working

Agile BoardAttach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Not A Problem
    • None
    • None
    • None
    • None

    Description

      The FileTabCharacter check doesnt seem to work. Below is my config:

      <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 flagged as violations.

      Some additional info - my plugin config 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>
      

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            maudish Dipti Desai
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment