Move Go Language into own sub-module, update changelog

This commit is contained in:
Andreas Dangel 2014-10-12 20:05:17 +02:00
parent e8fadec7de
commit c7d3d2969f
9 changed files with 83 additions and 1 deletions

View File

@ -78,6 +78,11 @@
<artifactId>pmd-fortran</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>net.sourceforge.pmd</groupId>
<artifactId>pmd-go</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>net.sourceforge.pmd</groupId>
<artifactId>pmd-java</artifactId>

55
pmd-go/pom.xml Normal file
View 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>

View File

@ -10,6 +10,6 @@ package net.sourceforge.pmd.cpd;
*/
public class GoLanguage extends AbstractLanguage {
public GoLanguage() {
super(new GoTokenizer(), ".go");
super("Go", "go", new GoTokenizer(), ".go");
}
}

View File

@ -0,0 +1 @@
net.sourceforge.pmd.cpd.GoLanguage

View 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
View 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>

View File

@ -845,6 +845,7 @@
<module>pmd-cs</module>
<module>pmd-dist</module>
<module>pmd-fortran</module>
<module>pmd-go</module>
<module>pmd-java</module>
<module>pmd-javascript</module>
<module>pmd-jsp</module>

View File

@ -24,6 +24,10 @@ the following two dependencies:
The binary package still contains all languages and can be used as usual.
**New Languages**
* CPD supports now [Go](https://golang.org/).
**Bugfixes:**
**Feature Requests and Improvements:**
@ -31,6 +35,7 @@ The binary package still contains all languages and can be used as usual.
**Pull requests:**
* [#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:**