Return-Path: X-Original-To: apmail-syncope-commits-archive@www.apache.org Delivered-To: apmail-syncope-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 90BF110ECF for ; Wed, 14 Jan 2015 16:38:16 +0000 (UTC) Received: (qmail 35608 invoked by uid 500); 14 Jan 2015 16:38:18 -0000 Delivered-To: apmail-syncope-commits-archive@syncope.apache.org Received: (qmail 35556 invoked by uid 500); 14 Jan 2015 16:38:18 -0000 Mailing-List: contact commits-help@syncope.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@syncope.apache.org Delivered-To: mailing list commits@syncope.apache.org Received: (qmail 35538 invoked by uid 99); 14 Jan 2015 16:38:18 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Jan 2015 16:38:18 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id D036FA41FD1; Wed, 14 Jan 2015 16:38:17 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: ilgrosso@apache.org To: commits@syncope.apache.org Date: Wed, 14 Jan 2015 16:38:17 -0000 Message-Id: <66dcc81b8839430a8d56ec7637742f55@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [1/5] syncope git commit: Checkstyle / PMD config in Repository: syncope Updated Branches: refs/heads/2_0_X 06eb20a1b -> b015c443b Checkstyle / PMD config in Project: http://git-wip-us.apache.org/repos/asf/syncope/repo Commit: http://git-wip-us.apache.org/repos/asf/syncope/commit/ad98b98c Tree: http://git-wip-us.apache.org/repos/asf/syncope/tree/ad98b98c Diff: http://git-wip-us.apache.org/repos/asf/syncope/diff/ad98b98c Branch: refs/heads/2_0_X Commit: ad98b98cce3a8f06b4134495b6dcf822f7f1e3a0 Parents: 06eb20a Author: Francesco Chicchiriccò Authored: Tue Jan 13 09:04:14 2015 +0100 Committer: Francesco Chicchiriccò Committed: Tue Jan 13 09:04:14 2015 +0100 ---------------------------------------------------------------------- syncope620/client/lib/pom.xml | 19 +- syncope620/common/lib/pom.xml | 17 + syncope620/common/rest-api/pom.xml | 19 +- syncope620/pom.xml | 22 ++ syncope620/server/logic/pom.xml | 15 + .../apache/syncope/server/logic/UserLogic.java | 2 +- syncope620/server/misc/pom.xml | 16 + syncope620/server/persistence-api/pom.xml | 16 + syncope620/server/persistence-jpa/pom.xml | 13 + syncope620/server/provisioning-api/pom.xml | 16 + syncope620/server/provisioning-java/pom.xml | 13 + syncope620/server/rest-cxf/pom.xml | 16 + syncope620/server/workflow-api/pom.xml | 18 +- syncope620/server/workflow-java/pom.xml | 16 + .../resources/org/apache/syncope/checkstyle.xml | 214 +++++++++++++ .../org/apache/syncope/java-formatter.xml | 309 +++++++++++++++++++ .../main/resources/org/apache/syncope/pmd.xml | 49 +++ 17 files changed, 786 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/syncope/blob/ad98b98c/syncope620/client/lib/pom.xml ---------------------------------------------------------------------- diff --git a/syncope620/client/lib/pom.xml b/syncope620/client/lib/pom.xml index 0551c79..c4886be 100644 --- a/syncope620/client/lib/pom.xml +++ b/syncope620/client/lib/pom.xml @@ -32,7 +32,11 @@ under the License. org.apache.syncope.client syncope-client-lib jar - + + + ${basedir}/../.. + + javax.ws.rs @@ -59,4 +63,17 @@ under the License. ${project.version} + + + + + org.apache.maven.plugins + maven-checkstyle-plugin + + + org.apache.maven.plugins + maven-pmd-plugin + + + http://git-wip-us.apache.org/repos/asf/syncope/blob/ad98b98c/syncope620/common/lib/pom.xml ---------------------------------------------------------------------- diff --git a/syncope620/common/lib/pom.xml b/syncope620/common/lib/pom.xml index e171dad..2bdc6ea 100644 --- a/syncope620/common/lib/pom.xml +++ b/syncope620/common/lib/pom.xml @@ -33,6 +33,10 @@ under the License. syncope-common-lib jar + + ${basedir}/../.. + + javax.ws.rs @@ -74,4 +78,17 @@ under the License. test + + + + + org.apache.maven.plugins + maven-checkstyle-plugin + + + org.apache.maven.plugins + maven-pmd-plugin + + + http://git-wip-us.apache.org/repos/asf/syncope/blob/ad98b98c/syncope620/common/rest-api/pom.xml ---------------------------------------------------------------------- diff --git a/syncope620/common/rest-api/pom.xml b/syncope620/common/rest-api/pom.xml index 432aa9e..137bfea 100644 --- a/syncope620/common/rest-api/pom.xml +++ b/syncope620/common/rest-api/pom.xml @@ -32,7 +32,11 @@ under the License. org.apache.syncope.common syncope-common-rest-api jar - + + + ${basedir}/../.. + + javax.validation @@ -62,4 +66,17 @@ under the License. ${project.version} + + + + + org.apache.maven.plugins + maven-checkstyle-plugin + + + org.apache.maven.plugins + maven-pmd-plugin + + + http://git-wip-us.apache.org/repos/asf/syncope/blob/ad98b98c/syncope620/pom.xml ---------------------------------------------------------------------- diff --git a/syncope620/pom.xml b/syncope620/pom.xml index fe966f3..a2433a8 100644 --- a/syncope620/pom.xml +++ b/syncope620/pom.xml @@ -364,6 +364,7 @@ under the License. 1abcdefghilmnopqrstuvz2! 1.7 + ${basedir} UTF-8 @@ -810,6 +811,27 @@ under the License. -Xms512m -Xmx1024m -XX:PermSize=256m -XX:MaxPermSize=512m + + + org.apache.maven.plugins + maven-checkstyle-plugin + 2.13 + + ${rootpom.basedir}/src/main/resources/org/apache/syncope/checkstyle.xml + ${targetJdk} + + + + org.apache.maven.plugins + maven-pmd-plugin + 3.3 + + + ${rootpom.basedir}/src/main/resources/org/apache/syncope/pmd.xml + + ${targetJdk} + + http://git-wip-us.apache.org/repos/asf/syncope/blob/ad98b98c/syncope620/server/logic/pom.xml ---------------------------------------------------------------------- diff --git a/syncope620/server/logic/pom.xml b/syncope620/server/logic/pom.xml index ec3cacd..84cecb0 100644 --- a/syncope620/server/logic/pom.xml +++ b/syncope620/server/logic/pom.xml @@ -32,6 +32,10 @@ under the License. org.apache.syncope.server syncope-server-logic jar + + + ${basedir}/../.. + @@ -162,5 +166,16 @@ under the License. true + + + + org.apache.maven.plugins + maven-checkstyle-plugin + + + org.apache.maven.plugins + maven-pmd-plugin + + http://git-wip-us.apache.org/repos/asf/syncope/blob/ad98b98c/syncope620/server/logic/src/main/java/org/apache/syncope/server/logic/UserLogic.java ---------------------------------------------------------------------- diff --git a/syncope620/server/logic/src/main/java/org/apache/syncope/server/logic/UserLogic.java b/syncope620/server/logic/src/main/java/org/apache/syncope/server/logic/UserLogic.java index 6b6d313..c3b01f6 100644 --- a/syncope620/server/logic/src/main/java/org/apache/syncope/server/logic/UserLogic.java +++ b/syncope620/server/logic/src/main/java/org/apache/syncope/server/logic/UserLogic.java @@ -148,7 +148,7 @@ public class UserLogic extends AbstractSubjectLogic { Set adminRoleIds = RoleEntitlementUtil.getRoleKeys(AuthContextUtil.getOwnedEntitlementNames()); List users = userDAO.findAll(adminRoleIds, page, size, orderBy); - List userTOs = new ArrayList(users.size()); + List userTOs = new ArrayList<>(users.size()); for (User user : users) { userTOs.add(binder.getUserTO(user)); } http://git-wip-us.apache.org/repos/asf/syncope/blob/ad98b98c/syncope620/server/misc/pom.xml ---------------------------------------------------------------------- diff --git a/syncope620/server/misc/pom.xml b/syncope620/server/misc/pom.xml index fd4ae70..3aa738a 100644 --- a/syncope620/server/misc/pom.xml +++ b/syncope620/server/misc/pom.xml @@ -32,6 +32,10 @@ under the License. org.apache.syncope.server syncope-server-misc jar + + + ${basedir}/../.. + @@ -98,4 +102,16 @@ under the License. + + + + org.apache.maven.plugins + maven-checkstyle-plugin + + + org.apache.maven.plugins + maven-pmd-plugin + + + http://git-wip-us.apache.org/repos/asf/syncope/blob/ad98b98c/syncope620/server/persistence-api/pom.xml ---------------------------------------------------------------------- diff --git a/syncope620/server/persistence-api/pom.xml b/syncope620/server/persistence-api/pom.xml index ff1d632..c65699f 100644 --- a/syncope620/server/persistence-api/pom.xml +++ b/syncope620/server/persistence-api/pom.xml @@ -32,6 +32,10 @@ under the License. org.apache.syncope.server syncope-persistence-api jar + + + ${basedir}/../.. + @@ -59,4 +63,16 @@ under the License. + + + + org.apache.maven.plugins + maven-checkstyle-plugin + + + org.apache.maven.plugins + maven-pmd-plugin + + + http://git-wip-us.apache.org/repos/asf/syncope/blob/ad98b98c/syncope620/server/persistence-jpa/pom.xml ---------------------------------------------------------------------- diff --git a/syncope620/server/persistence-jpa/pom.xml b/syncope620/server/persistence-jpa/pom.xml index 53ca552..2d1f6e0 100644 --- a/syncope620/server/persistence-jpa/pom.xml +++ b/syncope620/server/persistence-jpa/pom.xml @@ -32,6 +32,10 @@ under the License. org.apache.syncope.server syncope-persistence-jpa jar + + + ${basedir}/../.. + @@ -158,6 +162,15 @@ under the License. + + + org.apache.maven.plugins + maven-checkstyle-plugin + + + org.apache.maven.plugins + maven-pmd-plugin + http://git-wip-us.apache.org/repos/asf/syncope/blob/ad98b98c/syncope620/server/provisioning-api/pom.xml ---------------------------------------------------------------------- diff --git a/syncope620/server/provisioning-api/pom.xml b/syncope620/server/provisioning-api/pom.xml index aa27a1c..e068061 100644 --- a/syncope620/server/provisioning-api/pom.xml +++ b/syncope620/server/provisioning-api/pom.xml @@ -32,6 +32,10 @@ under the License. org.apache.syncope.server syncope-provisioning-api jar + + + ${basedir}/../.. + @@ -51,4 +55,16 @@ under the License. + + + + org.apache.maven.plugins + maven-checkstyle-plugin + + + org.apache.maven.plugins + maven-pmd-plugin + + + http://git-wip-us.apache.org/repos/asf/syncope/blob/ad98b98c/syncope620/server/provisioning-java/pom.xml ---------------------------------------------------------------------- diff --git a/syncope620/server/provisioning-java/pom.xml b/syncope620/server/provisioning-java/pom.xml index 66a2a85..4d4ac5e 100644 --- a/syncope620/server/provisioning-java/pom.xml +++ b/syncope620/server/provisioning-java/pom.xml @@ -32,6 +32,10 @@ under the License. org.apache.syncope.server syncope-provisioning-java jar + + + ${basedir}/../.. + @@ -121,6 +125,15 @@ under the License. + + + org.apache.maven.plugins + maven-checkstyle-plugin + + + org.apache.maven.plugins + maven-pmd-plugin + http://git-wip-us.apache.org/repos/asf/syncope/blob/ad98b98c/syncope620/server/rest-cxf/pom.xml ---------------------------------------------------------------------- diff --git a/syncope620/server/rest-cxf/pom.xml b/syncope620/server/rest-cxf/pom.xml index c8e020c..38057dd 100644 --- a/syncope620/server/rest-cxf/pom.xml +++ b/syncope620/server/rest-cxf/pom.xml @@ -32,6 +32,10 @@ under the License. org.apache.syncope.server syncope-server-rest-cxf jar + + + ${basedir}/../.. + @@ -90,4 +94,16 @@ under the License. + + + + org.apache.maven.plugins + maven-checkstyle-plugin + + + org.apache.maven.plugins + maven-pmd-plugin + + + http://git-wip-us.apache.org/repos/asf/syncope/blob/ad98b98c/syncope620/server/workflow-api/pom.xml ---------------------------------------------------------------------- diff --git a/syncope620/server/workflow-api/pom.xml b/syncope620/server/workflow-api/pom.xml index af7bed8..a36e65e 100644 --- a/syncope620/server/workflow-api/pom.xml +++ b/syncope620/server/workflow-api/pom.xml @@ -32,6 +32,10 @@ under the License. org.apache.syncope.server syncope-workflow-api jar + + + ${basedir}/../.. + @@ -40,5 +44,17 @@ under the License. ${project.version} - + + + + + org.apache.maven.plugins + maven-checkstyle-plugin + + + org.apache.maven.plugins + maven-pmd-plugin + + + http://git-wip-us.apache.org/repos/asf/syncope/blob/ad98b98c/syncope620/server/workflow-java/pom.xml ---------------------------------------------------------------------- diff --git a/syncope620/server/workflow-java/pom.xml b/syncope620/server/workflow-java/pom.xml index c70d2c4..1595c44 100644 --- a/syncope620/server/workflow-java/pom.xml +++ b/syncope620/server/workflow-java/pom.xml @@ -32,6 +32,10 @@ under the License. org.apache.syncope.server syncope-workflow-java jar + + + ${basedir}/../.. + @@ -50,4 +54,16 @@ under the License. + + + + org.apache.maven.plugins + maven-checkstyle-plugin + + + org.apache.maven.plugins + maven-pmd-plugin + + + http://git-wip-us.apache.org/repos/asf/syncope/blob/ad98b98c/syncope620/src/main/resources/org/apache/syncope/checkstyle.xml ---------------------------------------------------------------------- diff --git a/syncope620/src/main/resources/org/apache/syncope/checkstyle.xml b/syncope620/src/main/resources/org/apache/syncope/checkstyle.xml new file mode 100644 index 0000000..e824479 --- /dev/null +++ b/syncope620/src/main/resources/org/apache/syncope/checkstyle.xml @@ -0,0 +1,214 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + http://git-wip-us.apache.org/repos/asf/syncope/blob/ad98b98c/syncope620/src/main/resources/org/apache/syncope/java-formatter.xml ---------------------------------------------------------------------- diff --git a/syncope620/src/main/resources/org/apache/syncope/java-formatter.xml b/syncope620/src/main/resources/org/apache/syncope/java-formatter.xml new file mode 100644 index 0000000..07961a6 --- /dev/null +++ b/syncope620/src/main/resources/org/apache/syncope/java-formatter.xml @@ -0,0 +1,309 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + http://git-wip-us.apache.org/repos/asf/syncope/blob/ad98b98c/syncope620/src/main/resources/org/apache/syncope/pmd.xml ---------------------------------------------------------------------- diff --git a/syncope620/src/main/resources/org/apache/syncope/pmd.xml b/syncope620/src/main/resources/org/apache/syncope/pmd.xml new file mode 100644 index 0000000..28cfb4c --- /dev/null +++ b/syncope620/src/main/resources/org/apache/syncope/pmd.xml @@ -0,0 +1,49 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + +