To protect your data, the CISO officer has suggested users to enable 2FA as soon as possible.
Currently 2.7% of users enabled 2FA.

Commit aa5cc6c3 authored by John Zhang's avatar John Zhang
Browse files

Update build and config info

`build.xml`:
  - add library dependency -- saxon;
  - skip testing when building PMD so to build faster;
  - correct inclusion paths for Java source files and rulesets;

`pmd.cnf`:
  - update version and website
  - update rule set paths and remove non existing rule sets:

    - favorites.xml
    - newrules.xml
    - scratchpad.xml
parent 9df20b09
......@@ -19,6 +19,7 @@
<property name="commons-io-version" value="2.4"/>
<property name="commons-lang3-version" value="3.4"/>
<property name="jcommander-version" value="1.48"/>
<property name="saxon-version" value="9.1.0.8"/>
<condition property="mvn-exe" value="mvn.bat">
<os family="windows"/>
......@@ -45,11 +46,10 @@
<exec executable="${bm-files}/mvn_toolchain_setup.sh">
<arg line="${mvn-toolchains-xml}"/>
</exec>
<!-- <copy file="/tmp/pmd/toolchains.xml" tofile="${mvn-toolchains-xml}"/> -->
<!-- execute Maven in build directory -->
<exec dir="${bm-build-top}" executable="mvn">
<arg line="-B --global-toolchains ${mvn-toolchains-xml} clean verify"/>
<arg line="-B --global-toolchains ${mvn-toolchains-xml} -Dmaven.test.skip=true clean package"/>
</exec>
<!-- unpacks produced zip file -->
......@@ -58,19 +58,24 @@
</target>
<target name="jar" depends="libs">
<copy file="${pmd-dist-target}/lib/pmd-core-${bm-version}.jar" todir="${bm-jars}"/>
<copy todir="${bm-jars}">
<resources>
<file file="${pmd-dist-target}/lib/pmd-core-${bm-version}.jar"/>
<file file="${pmd-dist-target}/lib/pmd-java-${bm-version}.jar"/>
</resources>
</copy>
</target>
<target name="data">
<property name="pmd-data" value="${bm-build-top}/data/pmd"/>
<mkdir dir="${pmd-data}"/>
<copy todir="${pmd-data}">
<fileset dir="${bm-build-top}/src">
<include name="net/**/*.java"/>
<fileset dir="${bm-build-top}">
<include name="**/*.java"/>
</fileset>
</copy>
<copy todir="${pmd-data}">
<fileset dir="${bm-build-top}">
<fileset dir="${bm-build-top}/pmd-java/src/main/resources">
<include name="rulesets/**/*"/>
</fileset>
</copy>
......@@ -91,6 +96,8 @@
<file file="${pmd-dist-target}/lib/commons-io-${commons-io-version}.jar"/>
<file file="${pmd-dist-target}/lib/commons-lang3-${commons-lang3-version}.jar"/>
<file file="${pmd-dist-target}/lib/jcommander-${jcommander-version}.jar"/>
<file file="${pmd-dist-target}/lib/saxon-${saxon-version}.jar"/>
<file file="${pmd-dist-target}/lib/saxon-${saxon-version}-dom.jar"/>
</resources>
</copy>
</target>
......
benchmark pmd
class org.dacapo.harness.Pmd
thread-model single
jars "pmd-core-5.7.0.jar", "jaxen-1.1.6.jar", "asm-5.0.4.jar", "commons-io-2.4.jar", "commons-lang3-3.4.jar", "jcommander-1.48.jar", "junit-3.8.1.jar", "xercesImpl.jar", "xml-apis.jar";
jars "pmd-core-5.7.0.jar", "pmd-java-5.7.0.jar", "jaxen-1.1.6.jar", "asm-5.0.4.jar", "commons-io-2.4.jar", "commons-lang3-3.4.jar", "jcommander-1.48.jar", "saxon-9.1.0.8.jar", "saxon-9.1.0.8-dom.jar", "junit-3.8.1.jar", "xercesImpl.jar", "xml-apis.jar";
size xsmall args "@pmd/small.lst","xml","pmd/rulesets/imports.xml","-debug"
size xsmall args "@pmd/small.lst","xml","pmd/rulesets/java/imports.xml","-debug"
output
stderr digest 0xda39a3ee5e6b4b0d3255bfef95601890afd80709;
size small args "@pmd/small.lst","text",
"pmd/rulesets/basic.xml",
"pmd/rulesets/braces.xml",
"pmd/rulesets/codesize.xml",
"pmd/rulesets/controversial.xml",
"pmd/rulesets/coupling.xml",
"pmd/rulesets/design.xml",
"pmd/rulesets/favorites.xml",
"pmd/rulesets/finalizers.xml",
"pmd/rulesets/imports.xml",
"pmd/rulesets/javabeans.xml",
"pmd/rulesets/junit.xml",
"pmd/rulesets/naming.xml",
"pmd/rulesets/newrules.xml",
"pmd/rulesets/rulesets.properties",
"pmd/rulesets/scratchpad.xml",
"pmd/rulesets/strictexception.xml",
"pmd/rulesets/strings.xml",
"pmd/rulesets/unusedcode.xml"
"pmd/rulesets/java/basic.xml",
"pmd/rulesets/java/braces.xml",
"pmd/rulesets/java/codesize.xml",
"pmd/rulesets/java/controversial.xml",
"pmd/rulesets/java/coupling.xml",
"pmd/rulesets/java/design.xml",
"pmd/rulesets/java/finalizers.xml",
"pmd/rulesets/java/imports.xml",
"pmd/rulesets/java/javabeans.xml",
"pmd/rulesets/java/junit.xml",
"pmd/rulesets/java/naming.xml",
"pmd/rulesets/java/strictexception.xml",
"pmd/rulesets/java/strings.xml",
"pmd/rulesets/java/unusedcode.xml"
output
stderr digest 0xda39a3ee5e6b4b0d3255bfef95601890afd80709;
size default args "@pmd/default.lst","text",
"pmd/rulesets/basic.xml",
"pmd/rulesets/braces.xml",
"pmd/rulesets/codesize.xml",
"pmd/rulesets/controversial.xml",
"pmd/rulesets/coupling.xml",
"pmd/rulesets/design.xml",
"pmd/rulesets/favorites.xml",
"pmd/rulesets/finalizers.xml",
"pmd/rulesets/imports.xml",
"pmd/rulesets/javabeans.xml",
"pmd/rulesets/junit.xml",
"pmd/rulesets/naming.xml",
"pmd/rulesets/newrules.xml",
"pmd/rulesets/rulesets.properties",
"pmd/rulesets/scratchpad.xml",
"pmd/rulesets/strictexception.xml",
"pmd/rulesets/strings.xml",
"pmd/rulesets/unusedcode.xml"
"pmd/rulesets/java/basic.xml",
"pmd/rulesets/java/braces.xml",
"pmd/rulesets/java/codesize.xml",
"pmd/rulesets/java/controversial.xml",
"pmd/rulesets/java/coupling.xml",
"pmd/rulesets/java/design.xml",
"pmd/rulesets/java/finalizers.xml",
"pmd/rulesets/java/imports.xml",
"pmd/rulesets/java/javabeans.xml",
"pmd/rulesets/java/junit.xml",
"pmd/rulesets/java/naming.xml",
"pmd/rulesets/java/strictexception.xml",
"pmd/rulesets/java/strings.xml",
"pmd/rulesets/java/unusedcode.xml"
output
stderr digest 0xda39a3ee5e6b4b0d3255bfef95601890afd80709;
size large args "@pmd/large.lst","text",
"pmd/rulesets/basic.xml",
"pmd/rulesets/braces.xml",
"pmd/rulesets/codesize.xml",
"pmd/rulesets/controversial.xml",
"pmd/rulesets/coupling.xml",
"pmd/rulesets/design.xml",
"pmd/rulesets/favorites.xml",
"pmd/rulesets/finalizers.xml",
"pmd/rulesets/imports.xml",
"pmd/rulesets/javabeans.xml",
"pmd/rulesets/junit.xml",
"pmd/rulesets/naming.xml",
"pmd/rulesets/newrules.xml",
"pmd/rulesets/rulesets.properties",
"pmd/rulesets/scratchpad.xml",
"pmd/rulesets/strictexception.xml",
"pmd/rulesets/strings.xml",
"pmd/rulesets/unusedcode.xml"
"pmd/rulesets/java/basic.xml",
"pmd/rulesets/java/braces.xml",
"pmd/rulesets/java/codesize.xml",
"pmd/rulesets/java/controversial.xml",
"pmd/rulesets/java/coupling.xml",
"pmd/rulesets/java/design.xml",
"pmd/rulesets/java/finalizers.xml",
"pmd/rulesets/java/imports.xml",
"pmd/rulesets/java/javabeans.xml",
"pmd/rulesets/java/junit.xml",
"pmd/rulesets/java/naming.xml",
"pmd/rulesets/java/strictexception.xml",
"pmd/rulesets/java/strings.xml",
"pmd/rulesets/java/unusedcode.xml"
output
stderr digest 0xda39a3ee5e6b4b0d3255bfef95601890afd80709;
......@@ -79,7 +67,7 @@ description
copyright "Copyright (c) 2003, InfoEther, LLC",
author "Tom Copeland",
license "BSD-style",
url "http://pmd.sourceforge.net/",
version "4.2.5",
url "https://pmd.github.io",
version "5.7.0",
threads "Externally single-threaded. Internally multi-threaded; creating workers according to number of available processors.",
repeats "Single iteration checks numerous sources file against 18 coding rules";
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment