You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@olingo.apache.org by sk...@apache.org on 2013/07/31 10:12:47 UTC

[02/22] git commit: add checkstyle for code conventions

add checkstyle for code conventions


Project: http://git-wip-us.apache.org/repos/asf/incubator-olingo-odata2/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-olingo-odata2/commit/be9827da
Tree: http://git-wip-us.apache.org/repos/asf/incubator-olingo-odata2/tree/be9827da
Diff: http://git-wip-us.apache.org/repos/asf/incubator-olingo-odata2/diff/be9827da

Branch: refs/heads/master
Commit: be9827daa2ac0bd8a3089b13f644fb1d34abb5e3
Parents: 622a069
Author: Stephan Klevenz <st...@sap.com>
Authored: Wed Jul 31 09:43:35 2013 +0200
Committer: Stephan Klevenz <st...@sap.com>
Committed: Wed Jul 31 09:51:40 2013 +0200

----------------------------------------------------------------------
 pom.xml                       | 27 ++++++++++++++++++++++++++-
 src/eclipse/codetemplates.xml | 34 ----------------------------------
 2 files changed, 26 insertions(+), 35 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-olingo-odata2/blob/be9827da/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index f1fb30b..28deaa8 100644
--- a/pom.xml
+++ b/pom.xml
@@ -8,7 +8,7 @@
 	<version>1.0.0-SNAPSHOT</version>
 	<packaging>pom</packaging>
 	<name>${project.groupId}-${project.artifactId}</name>
-	
+
 	<parent>
 		<groupId>org.apache</groupId>
 		<artifactId>apache</artifactId>
@@ -122,6 +122,10 @@
 		<pluginManagement>
 			<plugins>
 				<plugin>
+					<artifactId>maven-checkstyle-plugin</artifactId>
+					<version>2.10</version>
+				</plugin>
+				<plugin>
 					<groupId>org.apache.maven.plugins</groupId>
 					<artifactId>maven-compiler-plugin</artifactId>
 					<version>2.3.2</version>
@@ -259,6 +263,27 @@
 					</execution>
 				</executions>
 			</plugin>
+			<plugin>
+				<artifactId>maven-checkstyle-plugin</artifactId>
+				<executions>
+					<execution>
+						<goals>
+							<goal>check</goal>
+						</goals>
+					</execution>
+				</executions>
+				<configuration>
+					<outputFileFormat>xml</outputFileFormat>
+					<consoleOutput>true</consoleOutput>
+					<enableRSS>false</enableRSS>
+					<linkXRef>false</linkXRef>
+					<configLocation>src/checkstyle/config.xml</configLocation>
+					<sourceDirectory>${basedir}/src</sourceDirectory>
+					<encoding>UTF-8</encoding>
+					<failOnViolation>true</failOnViolation>
+					<violationSeverity>error</violationSeverity>
+				</configuration>
+			</plugin>
 		</plugins>
 	</build>
 

http://git-wip-us.apache.org/repos/asf/incubator-olingo-odata2/blob/be9827da/src/eclipse/codetemplates.xml
----------------------------------------------------------------------
diff --git a/src/eclipse/codetemplates.xml b/src/eclipse/codetemplates.xml
deleted file mode 100644
index c23ee59..0000000
--- a/src/eclipse/codetemplates.xml
+++ /dev/null
@@ -1,34 +0,0 @@
-<!--
-
-    (c) 2013 by SAP AG
-
--->
-<!--
-
-    (c) {$year} by SAP AG
-
--->
-<?xml version="1.0" encoding="UTF-8" standalone="no"?><templates><template autoinsert="false" context="filecomment_context" deleted="false" description="Comment for created Java files" enabled="true" id="org.eclipse.jdt.ui.text.codetemplates.filecomment" name="filecomment">/**
-<!--
-
- Licensed to the Apache Software Foundation (ASF) under one
- or more contributor license agreements.  See the NOTICE file
- distributed with this work for additional information
- regarding copyright ownership.  The ASF licenses this file
- to you under the Apache License, Version 2.0 (the
- "License"); you may not use this file except in compliance
- with the License.  You may obtain a copy of the License at
-
-   http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing,
- software distributed under the License is distributed on an
- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, either express or implied.  See the License for the
- specific language governing permissions and limitations
- under the License.
-
--->
-
- * (c) ${year} by SAP AG
- */</template></templates>