Moved the checkstyle project from parents to build to store all build tools in one location. Modified the config file to use 1024 for now.

This commit is contained in:
Alex Huang 2013-12-11 14:37:38 -08:00
parent 9a21afb50b
commit f33b247fc3
4 changed files with 23 additions and 9 deletions

View File

@ -11,7 +11,7 @@
<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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<name>Apache CloudStack Checkstyle Configuration</name>
<artifactId>checkstyle</artifactId>
<artifactId>build-checkstyle</artifactId>
<parent>
<groupId>org.apache.cloudstack</groupId>
<artifactId>cloud-maven-standard</artifactId>

View File

@ -28,11 +28,14 @@
<module name="TreeWalker">
<module name="LineLength">
<property name="max" value="180"/>
<property name="max" value="1024"/>
</module>
<module name="RedundantImport"/>
<module name="UnusedImports"/>
<module name="MemberName">
<property name="format" value="^[a-zA-Z_][a-zA-Z0-9]*$"/>
</module>
<module name="PackageName"/>
<module name="ParameterName"/>

View File

@ -26,7 +26,7 @@
<version>4.4.0-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<!--
<build>
<plugins>
<plugin>
@ -60,5 +60,5 @@
</plugin>
</plugins>
</build>
-->
</project>

21
pom.xml
View File

@ -175,7 +175,7 @@
<module>services</module>
<module>maven-standard</module>
<module>quickcloud</module>
<module>parents/checkstyle</module>
<module>build/checkstyle</module>
</modules>
<dependencyManagement>
@ -445,15 +445,13 @@
<outputDirectory>${basedir}/${cs.target.dir}/classes</outputDirectory>
<testOutputDirectory>${basedir}/${cs.target.dir}/test-classes</testOutputDirectory>
<plugins>
<!--
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<version>${cs.checkstyle.version}</version>
<dependencies>
<dependency>
<groupId>org.apache.cloudstack</groupId>
<artifactId>checkstyle</artifactId>
<artifactId>build-checkstyle</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>
@ -475,7 +473,6 @@
<excludes>**\/deps\/,**\/test\/,**\/target\/,**\/bin\/,**\/*.xml,**\/*.ini,**\/*.sh,**\/*.bat</excludes>
</configuration>
</plugin>
-->
</plugins>
<pluginManagement>
<plugins>
@ -753,6 +750,20 @@
</plugins>
</pluginManagement>
</build>
<!--
<reporting>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<configuration>
<configLocation>tooling/checkstyle.xml</configLocation>
<headerLocation>tooling/LICENSE.txt</headerLocation>
</configuration>
</plugin>
</plugins>
</reporting>
-->
<profiles>
<profile>