[java-idp-plugin-scripting] 01/02: Fix site build

Rod Widdowson rdw at steadingsoftware.com
Mon Jun 22 14:07:15 UTC 2020


This is an automated email from the git hooks/post-receive script.

rdw pushed a commit to branch master
in repository java-idp-plugin-scripting.

View the commit online:
http://git.shibboleth.net/view/?p=java-idp-plugin-scripting.git;a=commit;h=935c7f6d3910482773fe5623882f991e547fcb15

commit 935c7f6d3910482773fe5623882f991e547fcb15
Author: Rod Widdowson <rdw at steadingsoftware.com>
AuthorDate: Mon Jun 22 15:01:46 2020 +0100

    Fix site build
---
 checkstyle.xml        | 117 ++++++++++++++++++++++++++++++++++++++++++++++++++
 nashorn-dist/pom.xml  |   5 ++-
 nashorn-impl/pom.xml  |   1 +
 pom.xml               |   1 +
 rhino-dist/pom.xml    |   1 +
 rhino-impl/pom.xml    |   1 +
 scripting-api/pom.xml |   1 +
 7 files changed, 125 insertions(+), 2 deletions(-)

diff --git a/checkstyle.xml b/checkstyle.xml
new file mode 100644
index 0000000..f3f13f6
--- /dev/null
+++ b/checkstyle.xml
@@ -0,0 +1,117 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE module PUBLIC "-//Puppy Crawl//DTD Check Configuration 1.3//EN" "http://www.puppycrawl.com/dtds/configuration_1_3.dtd">
+
+<!--
+    This configuration file was written by the eclipse-cs plugin configuration editor
+-->
+<!--
+    Checkstyle-Configuration: Shibboleth Checkstyle
+    Description: none
+-->
+<module name="Checker">
+  <property name="severity" value="warning"/>
+  <module name="TreeWalker">
+    <property name="tabWidth" value="4"/>
+    <module name="JavadocMethod"/>
+    <module name="JavadocType">
+        <property name="allowUnknownTags" value="true"/>
+    </module>
+    <module name="JavadocVariable"/>
+    <module name="JavadocStyle">
+      <property name="checkEmptyJavadoc" value="true"/>
+    </module>
+    <module name="ConstantName"/>
+    <module name="LocalFinalVariableName"/>
+    <module name="LocalVariableName"/>
+    <module name="MemberName"/>
+    <module name="MethodName"/>
+    <module name="PackageName"/>
+    <module name="ParameterName"/>
+    <module name="StaticVariableName"/>
+    <module name="TypeName"/>
+    <module name="AvoidStarImport"/>
+    <module name="IllegalImport"/>
+    <module name="RedundantImport"/>
+    <module name="UnusedImports"/>
+    <module name="MethodLength">
+      <property name="max" value="70"/>
+    </module>
+    <module name="ParameterNumber">
+      <property name="max" value="5"/>
+    </module>
+    <module name="EmptyForIteratorPad"/>
+    <module name="MethodParamPad"/>
+    <module name="ModifierOrder"/>
+    <module name="AvoidNestedBlocks"/>
+    <module name="LeftCurly"/>
+    <module name="NeedBraces"/>
+    <module name="RightCurly"/>
+    <module name="EmptyStatement"/>
+    <module name="EqualsHashCode"/>
+    <module name="HiddenField"/>
+    <module name="IllegalInstantiation"/>
+    <module name="InnerAssignment"/>
+    <module name="MissingSwitchDefault"/>
+    <module name="SimplifyBooleanExpression"/>
+    <module name="SimplifyBooleanReturn"/>
+    <module name="FinalClass"/>
+    <module name="HideUtilityClassConstructor"/>
+    <module name="VisibilityModifier"/>
+    <module name="ArrayTypeStyle"/>
+    <module name="UpperEll"/>
+    <module name="AnonInnerLength"/>
+    <module name="EmptyForInitializerPad"/>
+    <module name="CovariantEquals"/>
+    <module name="DefaultComesLast"/>
+    <module name="DeclarationOrder"/>
+    <module name="ExplicitInitialization"/>
+    <module name="FallThrough"/>
+    <module name="IllegalThrows"/>
+    <module name="MultipleVariableDeclarations"/>
+    <module name="PackageDeclaration"/>
+    <module name="ParameterAssignment"/>
+    <module name="ReturnCount">
+      <property name="max" value="8"/>
+      <property name="maxForVoid" value="8"/>
+    </module>
+    <module name="StringLiteralEquality"/>
+    <module name="SuperFinalize"/>
+    <module name="ArrayTrailingComma"/>
+    <module name="UnnecessaryParentheses"/>
+    <module name="MutableException"/>
+    <module name="ThrowsCount">
+      <property name="max" value="3"/>
+    </module>
+    <module name="CyclomaticComplexity"/>
+    <module name="TrailingComment"/>
+    <module name="EqualsAvoidNull"/>
+    <module name="ModifiedControlVariable"/>
+    <module name="FinalParameters">
+      <property name="tokens" value="METHOD_DEF,CTOR_DEF,LITERAL_CATCH"/>
+    </module>
+    <module name="FinalLocalVariable">
+      <property name="tokens" value="PARAMETER_DEF,VARIABLE_DEF"/>
+      <property name="validateEnhancedForLoopVariable" value="true"/>
+    </module>
+    <module name="SuppressionCommentFilter">
+      <property name="offCommentFormat" value="\bCheck[Ss]tyle:\s*([\w|]+)\s+OFF\b"/>
+      <property name="onCommentFormat" value="\bCheck[Ss]tyle:\s*([\w|]+)\s+ON\b"/>
+      <property name="checkFormat" value="$1"/>
+    </module>
+    <module name="MissingJavadocMethod"/>
+    <module name="MissingJavadocPackage"/>
+    <module name="MissingJavadocType"/>
+    <module name="InvalidJavadocPosition"/>
+  </module>
+  <module name="FileTabCharacter"/>
+  <module name="FileLength">
+    <property name="max" value="1000"/>
+  </module>
+  <module name="Header">
+    <property name="header" value="/*\n * Licensed to the University Corporation for Advanced Internet Development,\n * Inc. (UCAID) under one or more contributor license agreements.  See the\n * NOTICE file distributed with this work for additional information regarding\n * copyright ownership. The UCAID licenses this file to You under the Apache\n * License, Version 2.0 (the "License"); you may not use this file except in\n * compliance with the License.  You may obtain a cop [...]
+  </module>
+  <module name="JavadocPackage"/>
+  <module name="LineLength">
+    <property name="max" value="120"/>
+  </module>
+</module>
diff --git a/nashorn-dist/pom.xml b/nashorn-dist/pom.xml
index 23b6695..00e5c19 100644
--- a/nashorn-dist/pom.xml
+++ b/nashorn-dist/pom.xml
@@ -13,12 +13,13 @@
     <artifactId>nashorn-dist</artifactId>
     <packaging>pom</packaging>
 
-    <name>Shibboleth Project Nashorn plugin package</name>
+    <name>Shibboleth Project Nashorn Plugin package</name>
     <description>
-        A project to build a Nashorn plugin package
+        A project to build a Nashorn Plugin package
     </description>
 
     <properties>
+        <checkstyle.configLocation>${project.basedir}/../checkstyle.xml</checkstyle.configLocation>
 	<nashorn.finalName>shibboleth-idp-plugin-nashorn-${project.version}</nashorn.finalName>
     </properties>
 
diff --git a/nashorn-impl/pom.xml b/nashorn-impl/pom.xml
index eb57dba..cd15cc2 100644
--- a/nashorn-impl/pom.xml
+++ b/nashorn-impl/pom.xml
@@ -14,6 +14,7 @@
     <packaging>jar</packaging>
     
     <properties>
+        <checkstyle.configLocation>${project.basedir}/../checkstyle.xml</checkstyle.configLocation>
         <automatic.module.name>net.shibboleth.idp.plugin.scripting.nashorn</automatic.module.name>
     </properties>
     
diff --git a/pom.xml b/pom.xml
index 3f2f1e1..9724a91 100644
--- a/pom.xml
+++ b/pom.xml
@@ -25,6 +25,7 @@
         <idp.version>4.1.0-SNAPSHOT</idp.version>
         <java-support.version>8.1.0-SNAPSHOT</java-support.version>
         <spring.extensions.version>11.0.1-SNAPSHOT</spring.extensions.version>
+        <checkstyle.configLocation>${project.basedir}/checkstyle.xml</checkstyle.configLocation>
         <graalvm.version>20.0.0</graalvm.version>
     </properties>
 
diff --git a/rhino-dist/pom.xml b/rhino-dist/pom.xml
index 46d7b45..d4d3e5c 100644
--- a/rhino-dist/pom.xml
+++ b/rhino-dist/pom.xml
@@ -19,6 +19,7 @@
     </description>
 
     <properties>
+        <checkstyle.configLocation>${project.basedir}/../checkstyle.xml</checkstyle.configLocation>
         <rhino.finalName>shibboleth-idp-plugin-rhino-${project.version}</rhino.finalName>
     </properties>
 
diff --git a/rhino-impl/pom.xml b/rhino-impl/pom.xml
index 5e6febe..b2a4726 100644
--- a/rhino-impl/pom.xml
+++ b/rhino-impl/pom.xml
@@ -14,6 +14,7 @@
     <packaging>jar</packaging>
     
     <properties>
+        <checkstyle.configLocation>${project.basedir}/../checkstyle.xml</checkstyle.configLocation>
         <automatic.module.name>net.shibboleth.idp.plugin.scripting.rhino</automatic.module.name>
     </properties>
     
diff --git a/scripting-api/pom.xml b/scripting-api/pom.xml
index 76d0fe3..d94672b 100644
--- a/scripting-api/pom.xml
+++ b/scripting-api/pom.xml
@@ -15,6 +15,7 @@
     <packaging>jar</packaging>
     
     <properties>
+        <checkstyle.configLocation>${project.basedir}/../checkstyle.xml</checkstyle.configLocation>
         <automatic.module.name>net.shibboleth.idp.plugin.scripting.api</automatic.module.name>
     </properties>
     

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list