+++ /dev/null
-<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>
- <groupId>org.opendaylight.controller</groupId>
- <artifactId>checkstyle</artifactId>
- <version>0.4.0-SNAPSHOT</version>
- <scm>
- <connection>scm:git:http://git.opendaylight.org/gerrit/controller.git</connection>
- <developerConnection>scm:git:ssh://git.opendaylight.org:29418/controller.git</developerConnection>
- <url>https://wiki.opendaylight.org/view/OpenDaylight_Controller:Main</url>
- <tag>HEAD</tag>
- </scm>
-
- <properties>
- <nexusproxy>http://nexus.opendaylight.org/content</nexusproxy>
- <nexus.repository.release>opendaylight.release</nexus.repository.release>
- <nexus.repository.snapshot>opendaylight.snapshot</nexus.repository.snapshot>
- <sitedeploy>dav:http://nexus.opendaylight.org/content/sites/site</sitedeploy>
- </properties>
- <distributionManagement>
- <!-- OpenDayLight Released artifact -->
- <repository>
- <id>opendaylight-release</id>
- <url>${nexusproxy}/repositories/${nexus.repository.release}/</url>
- </repository>
- <!-- OpenDayLight Snapshot artifact -->
- <snapshotRepository>
- <id>opendaylight-snapshot</id>
- <url>${nexusproxy}/repositories/${nexus.repository.snapshot}/</url>
- </snapshotRepository>
- <!-- Site deployment -->
- <site>
- <id>website</id>
- <url>${sitedeploy}</url>
- </site>
- </distributionManagement>
-</project>
+++ /dev/null
-<?xml version="1.0"?>
-<!DOCTYPE module PUBLIC
- "-//Puppy Crawl//DTD Check Configuration 1.2//EN"
- "http://www.puppycrawl.com/dtds/configuration_1_2.dtd">
-<module name="Checker">
-
-<!--
- ======================================================================
- Please do not add new Checkstyle check modules here anymore:
-
- 1. https://git.opendaylight.org/gerrit/#/c/39797/ has aligned
- odl-parent's common Checkstyle rule set to include these.
-
- 2. As a next step, perhaps you would like to accept odl-parent's
- Checkstyle definition as errors instead of warnings for Controller?
- This is possible via violationSeverity=error as documented on
- https://wiki.opendaylight.org/view/BestPractices/Coding_Guidelines#Checkstyle
-
- Please contact odlparent-dev@lists.opendaylight.org if you feel
- a Checkstyle rule is too strict in general and should be reviewed.
-
- 3. Ultimately this entire project (org.opendaylight.controller:checkstyle)
- should then be deleted, and dependencies to it removed.
- ======================================================================
- -->
-
- <module name="FileTabCharacter">
- <property name="eachLine" value="true"/>
- </module>
-
- <module name="RegexpSingleline">
- <!-- \s matches whitespace character, $ matches end of line. -->
- <property name="format" value="\s+$"/>
- <property name="message" value="Line has trailing spaces."/>
- </module>
- <module name="TreeWalker">
- <module name="RedundantImport"/>
- <module name="UnusedImports"/>
- <module name="AvoidStarImport"/>
- <module name="UpperEll"/>
- <module name="EmptyStatement"/>
- <module name="EqualsHashCode"/>
- </module>
-
-</module>
<!-- Third Party Versions -->
<codahale.metrics.version>3.0.1</codahale.metrics.version>
- <commons.checkstyle.version>0.4.0-SNAPSHOT</commons.checkstyle.version>
<commons.httpclient.version>0.5.0-SNAPSHOT</commons.httpclient.version>
<commons.logback_settings.version>0.4.0-SNAPSHOT</commons.logback_settings.version>
<commons.opendaylight.commons.httpclient>0.5.0-SNAPSHOT</commons.opendaylight.commons.httpclient>
</plugins>
</pluginManagement>
<plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-checkstyle-plugin</artifactId>
- <configuration>
- <failsOnError>true</failsOnError>
- <configLocation>controller/checkstyle.xml</configLocation>
- <consoleOutput>true</consoleOutput>
- <includeTestSourceDirectory>true</includeTestSourceDirectory>
- <sourceDirectory>${project.basedir}</sourceDirectory>
- <includes>**\/*.java,**\/*.xml,**\/*.ini,**\/*.sh,**\/*.bat</includes>
- <excludes>**\/target\/,**\/bin\/,**\/target-ide\/,**\/${jmxGeneratorPath}\/,**\/${salGeneratorPath}\/,**\/protobuff\/,**\/src\/main\/resources\/archetype-resources\/**\/*.java</excludes>
- </configuration>
- <dependencies>
- <dependency>
- <groupId>org.opendaylight.controller</groupId>
- <artifactId>checkstyle</artifactId>
- <version>0.4.0-SNAPSHOT</version>
- </dependency>
- </dependencies>
- <executions>
- <execution>
- <goals>
- <goal>check</goal>
- </goals>
- <phase>process-sources</phase>
- </execution>
- </executions>
- </plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<outputDirectory>${project.build.directory}/site</outputDirectory>
<excludeDefaults>true</excludeDefaults>
<plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-checkstyle-plugin</artifactId>
- <version>${checkstyle.version}</version>
- </plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<!-- Parents -->
<module>opendaylight/commons/protocol-framework</module>
- <module>opendaylight/commons/checkstyle</module>
<module>opendaylight/commons/opendaylight</module>
<module>opendaylight/commons/logback_settings</module>
<module>opendaylight/commons/filter-valve</module>