Move Go Language into own sub-module, update changelog
This commit is contained in:
parent
e8fadec7de
commit
c7d3d2969f
@ -78,6 +78,11 @@
|
|||||||
<artifactId>pmd-fortran</artifactId>
|
<artifactId>pmd-fortran</artifactId>
|
||||||
<version>${project.version}</version>
|
<version>${project.version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>net.sourceforge.pmd</groupId>
|
||||||
|
<artifactId>pmd-go</artifactId>
|
||||||
|
<version>${project.version}</version>
|
||||||
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>net.sourceforge.pmd</groupId>
|
<groupId>net.sourceforge.pmd</groupId>
|
||||||
<artifactId>pmd-java</artifactId>
|
<artifactId>pmd-java</artifactId>
|
||||||
|
55
pmd-go/pom.xml
Normal file
55
pmd-go/pom.xml
Normal file
@ -0,0 +1,55 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||||
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
<artifactId>pmd-go</artifactId>
|
||||||
|
<name>PMD Go</name>
|
||||||
|
|
||||||
|
<parent>
|
||||||
|
<groupId>net.sourceforge.pmd</groupId>
|
||||||
|
<artifactId>pmd</artifactId>
|
||||||
|
<version>5.2.0-SNAPSHOT</version>
|
||||||
|
</parent>
|
||||||
|
|
||||||
|
<properties>
|
||||||
|
<config.basedir>${basedir}/../pmd-core</config.basedir>
|
||||||
|
</properties>
|
||||||
|
|
||||||
|
<build>
|
||||||
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<artifactId>maven-resources-plugin</artifactId>
|
||||||
|
<configuration>
|
||||||
|
<useDefaultDelimiters>false</useDefaultDelimiters>
|
||||||
|
<delimiters>
|
||||||
|
<delimiter>${*}</delimiter>
|
||||||
|
</delimiters>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
|
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-site-plugin</artifactId>
|
||||||
|
<configuration>
|
||||||
|
<xdocDirectory>${project.build.directory}/generated-xdocs</xdocDirectory>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</build>
|
||||||
|
<dependencies>
|
||||||
|
<dependency>
|
||||||
|
<groupId>net.sourceforge.pmd</groupId>
|
||||||
|
<artifactId>pmd-core</artifactId>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
|
<dependency>
|
||||||
|
<groupId>junit</groupId>
|
||||||
|
<artifactId>junit</artifactId>
|
||||||
|
<scope>test</scope>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>net.sourceforge.pmd</groupId>
|
||||||
|
<artifactId>pmd-test</artifactId>
|
||||||
|
<scope>test</scope>
|
||||||
|
</dependency>
|
||||||
|
</dependencies>
|
||||||
|
</project>
|
@ -10,6 +10,6 @@ package net.sourceforge.pmd.cpd;
|
|||||||
*/
|
*/
|
||||||
public class GoLanguage extends AbstractLanguage {
|
public class GoLanguage extends AbstractLanguage {
|
||||||
public GoLanguage() {
|
public GoLanguage() {
|
||||||
super(new GoTokenizer(), ".go");
|
super("Go", "go", new GoTokenizer(), ".go");
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -0,0 +1 @@
|
|||||||
|
net.sourceforge.pmd.cpd.GoLanguage
|
3
pmd-go/src/site/markdown/index.md
Normal file
3
pmd-go/src/site/markdown/index.md
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
# PMD Go
|
||||||
|
|
||||||
|
Only CPD is supported. There are no PMD rules for [Go](https://golang.org/).
|
12
pmd-go/src/site/site.xml
Normal file
12
pmd-go/src/site/site.xml
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project
|
||||||
|
xmlns="http://maven.apache.org/DECORATION/1.1.0"
|
||||||
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
|
xsi:schemaLocation="http://maven.apache.org/DECORATION/1.1.0 http://maven.apache.org/xsd/decoration-1.1.0.xsd"
|
||||||
|
name="PMD Go">
|
||||||
|
|
||||||
|
<body>
|
||||||
|
<menu ref="parent"/>
|
||||||
|
<menu ref="reports"/>
|
||||||
|
</body>
|
||||||
|
</project>
|
1
pom.xml
1
pom.xml
@ -845,6 +845,7 @@
|
|||||||
<module>pmd-cs</module>
|
<module>pmd-cs</module>
|
||||||
<module>pmd-dist</module>
|
<module>pmd-dist</module>
|
||||||
<module>pmd-fortran</module>
|
<module>pmd-fortran</module>
|
||||||
|
<module>pmd-go</module>
|
||||||
<module>pmd-java</module>
|
<module>pmd-java</module>
|
||||||
<module>pmd-javascript</module>
|
<module>pmd-javascript</module>
|
||||||
<module>pmd-jsp</module>
|
<module>pmd-jsp</module>
|
||||||
|
@ -24,6 +24,10 @@ the following two dependencies:
|
|||||||
|
|
||||||
The binary package still contains all languages and can be used as usual.
|
The binary package still contains all languages and can be used as usual.
|
||||||
|
|
||||||
|
**New Languages**
|
||||||
|
|
||||||
|
* CPD supports now [Go](https://golang.org/).
|
||||||
|
|
||||||
**Bugfixes:**
|
**Bugfixes:**
|
||||||
|
|
||||||
**Feature Requests and Improvements:**
|
**Feature Requests and Improvements:**
|
||||||
@ -31,6 +35,7 @@ The binary package still contains all languages and can be used as usual.
|
|||||||
**Pull requests:**
|
**Pull requests:**
|
||||||
|
|
||||||
* [#9](https://github.com/adangel/pmd/pull/9/): New rule: NoUnsanitizedJSPExpressionRule
|
* [#9](https://github.com/adangel/pmd/pull/9/): New rule: NoUnsanitizedJSPExpressionRule
|
||||||
|
* [#44](https://github.com/pmd/pmd/pull/44/): Add GoLang support to CPD
|
||||||
|
|
||||||
**New/Modified Rules:**
|
**New/Modified Rules:**
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user