This patch enables checkstyle enforcements.
Also some checkstyle issues are not yet addressed
and those are added to the suppress file for now.
As some of those issues are addressed those will
be removed for the suppress file. The checkstyle
issues suppressed show as warnings during
compile.
Change-Id: I1c64aa426de7d29002e66c50367bbe84f23d885c
Signed-off-by: Ritu Sood <ritu.sood@intel.com>
<build>
<pluginManagement>
<plugins>
+ <plugin>
+ <artifactId>maven-checkstyle-plugin</artifactId>
+ <configuration>
+ <suppressionsLocation>../../parent/checkstyle-suppressions.xml</suppressionsLocation>
+ <suppressionsFileExpression>checkstyle.suppressions.file</suppressionsFileExpression>
+ <excludes>org/opendaylight/yang/gen/**,**/yang/**</excludes>
+ <consoleOutput>true</consoleOutput>
+ <propertyExpansion>checkstyle.violationSeverity=error</propertyExpansion>
+ </configuration>
+ <executions>
+ <execution>
+ <goals>
+ <goal>check</goal>
+ </goals>
+ <phase>process-sources</phase>
+ </execution>
+ </executions>
+ </plugin>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
--- /dev/null
+<?xml version="1.0"?>
+
+<!DOCTYPE suppressions PUBLIC
+ "-//Puppy Crawl//DTD Suppressions 1.0//EN"
+ "http://www.puppycrawl.com/dtds/suppressions_1_0.dtd">
+
+<suppressions>
+ <suppress checks="JavadocStyleCheck"
+ files="."
+ />
+ <suppress checks="SummaryJavadoc"
+ files="."
+ />
+ <suppress checks="JavadocParagraph"
+ files="."
+ />
+ <suppress checks="JavadocTagContinuationIndentation"
+ files="."
+ />
+ <suppress checks="AbbreviationAsWordInName"
+ files="."
+ />
+ <suppress checks="ParameterName"
+ files="."
+ />
+ <suppress checks="LocalVariableName"
+ files="."
+ />
+ <suppress checks="ConstantName"
+ files="."
+ />
+ <suppress checks="TypeName"
+ files="."
+ />
+ <suppress checks="IllegalCatch"
+ files="."
+ />
+ <suppress checks="RegexpSinglelineJava"
+ files="."
+ />
+</suppressions>
+
<configuration>
<excludes>org/opendaylight/yang/gen/**,**/yang/**</excludes>
<consoleOutput>true</consoleOutput>
+ <suppressionsLocation>checkstyle-suppressions.xml</suppressionsLocation>
+ <suppressionsFileExpression>checkstyle.suppressions.file</suppressionsFileExpression>
+ <propertyExpansion>checkstyle.violationSeverity=error</propertyExpansion>
</configuration>
<executions>
<execution>
</properties>
<build>
<plugins>
+ <plugin>
+ <artifactId>maven-checkstyle-plugin</artifactId>
+ <configuration>
+ <suppressionsLocation>../parent/checkstyle-suppressions.xml</suppressionsLocation>
+ <suppressionsFileExpression>checkstyle.suppressions.file</suppressionsFileExpression>
+ <excludes>org/opendaylight/yang/gen/**,**/yang/**</excludes>
+ <consoleOutput>true</consoleOutput>
+ <propertyExpansion>checkstyle.violationSeverity=error</propertyExpansion>
+ </configuration>
+ <executions>
+ <execution>
+ <goals>
+ <goal>check</goal>
+ </goals>
+ <phase>process-sources</phase>
+ </execution>
+ </executions>
+ </plugin>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>