Skip to content

Commit

Permalink
Issue checkstyle#4369: Investigate how to map XPath expressions onto …
Browse files Browse the repository at this point in the history
…AST nodes
  • Loading branch information
timurt committed Jul 25, 2017
1 parent 3e24fc6 commit a21bfec
Show file tree
Hide file tree
Showing 13 changed files with 1,958 additions and 1 deletion.
6 changes: 6 additions & 0 deletions config/import-control.xml
Expand Up @@ -162,4 +162,10 @@
<allow class="com.puppycrawl.tools.checkstyle.JavadocDetailNodeParser" local-only="true"/>
<allow class="com.google.common.collect.ImmutableList" local-only="true"/>
</subpackage>

<subpackage name="xpath">
<allow pkg="net.sf.saxon"/>
<allow class="java.lang.reflect.Field"/>
<allow class="com.puppycrawl.tools.checkstyle.utils.TokenUtils"/>
</subpackage>
</import-control>
2 changes: 1 addition & 1 deletion config/pmd.xml
Expand Up @@ -178,7 +178,7 @@
<properties>
<!-- Can not change API -->
<property name="violationSuppressXPath" value="//ClassOrInterfaceDeclaration[@Image='AbstractFileSetCheck'
or @Image='AbstractCheck' or @Image='AbstractJavadocCheck']"/>
or @Image='AbstractCheck' or @Image='AbstractJavadocCheck' or @Image='AbstractNode']"/>
</properties>
</rule>

Expand Down
6 changes: 6 additions & 0 deletions pom.xml
Expand Up @@ -204,6 +204,7 @@
<maven.pmd.plugin.version>3.8</maven.pmd.plugin.version>
<pmd.version>5.8.1</pmd.version>
<maven.jacoco.plugin.version>0.7.9</maven.jacoco.plugin.version>
<saxon.version>9.8.0-3</saxon.version>
<maven.checkstyle.plugin.version>2.17</maven.checkstyle.plugin.version>
<maven.sevntu.checkstyle.plugin.version>1.24.2</maven.sevntu.checkstyle.plugin.version>
<maven.sevntu-checkstyle-check.checkstyle.version>8.1</maven.sevntu-checkstyle-check.checkstyle.version>
Expand Down Expand Up @@ -320,6 +321,11 @@
<scope>test</scope>
<classifier>runtime</classifier>
</dependency>
<dependency>
<groupId>net.sf.saxon</groupId>
<artifactId>Saxon-HE</artifactId>
<version>${saxon.version}</version>
</dependency>
</dependencies>

<build>
Expand Down

0 comments on commit a21bfec

Please sign in to comment.