Compare commits
No commits in common. "77b7d64852535949b7284161bfa774eb463defff" and "357585693ae1cbe38da9ffb4bed3b791922ea8e3" have entirely different histories.
77b7d64852
...
357585693a
7 changed files with 28 additions and 90 deletions
2
.github/workflows/bld.yml
vendored
2
.github/workflows/bld.yml
vendored
|
@ -8,7 +8,7 @@ jobs:
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
java-version: [ 17, 20 ]
|
java-version: [ 17, 19, 20 ]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout source repository
|
- name: Checkout source repository
|
||||||
|
|
2
.idea/misc.xml
generated
2
.idea/misc.xml
generated
|
@ -1,4 +1,3 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<project version="4">
|
<project version="4">
|
||||||
<component name="EntryPointsManager">
|
<component name="EntryPointsManager">
|
||||||
<entry_points version="2.0">
|
<entry_points version="2.0">
|
||||||
|
@ -33,7 +32,6 @@
|
||||||
<option name="customRuleSets">
|
<option name="customRuleSets">
|
||||||
<list>
|
<list>
|
||||||
<option value="K:\java\semver\config\pmd.xml" />
|
<option value="K:\java\semver\config\pmd.xml" />
|
||||||
<option value="$PROJECT_DIR$/../bld-exec/config/pmd.xml" />
|
|
||||||
</list>
|
</list>
|
||||||
</option>
|
</option>
|
||||||
<option name="skipTestSources" value="false" />
|
<option name="skipTestSources" value="false" />
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
# [bld](https://rife2.com/bld) Extension to Perform Static Code Analysis with [PMD](https://pmd.github.io/)
|
# [Bld](https://rife2.com/bld) Extension to Perform Static Code Analysis with [PMD](https://pmd.github.io/)
|
||||||
|
|
||||||
|
|
||||||
[](https://opensource.org/licenses/Apache-2.0)
|
[](https://opensource.org/licenses/Apache-2.0)
|
||||||
|
|
|
@ -1,19 +1,3 @@
|
||||||
/*
|
|
||||||
* Copyright 2023 the original author or authors.
|
|
||||||
*
|
|
||||||
* Licensed 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
|
|
||||||
*
|
|
||||||
* https://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.
|
|
||||||
*/
|
|
||||||
|
|
||||||
package rife.bld.extension;
|
package rife.bld.extension;
|
||||||
|
|
||||||
import rife.bld.BuildCommand;
|
import rife.bld.BuildCommand;
|
||||||
|
|
|
@ -26,7 +26,10 @@ import rife.bld.operations.AbstractOperation;
|
||||||
import java.net.URI;
|
import java.net.URI;
|
||||||
import java.nio.file.Path;
|
import java.nio.file.Path;
|
||||||
import java.nio.file.Paths;
|
import java.nio.file.Paths;
|
||||||
import java.util.*;
|
import java.util.ArrayList;
|
||||||
|
import java.util.Arrays;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Objects;
|
||||||
import java.util.logging.Level;
|
import java.util.logging.Level;
|
||||||
import java.util.logging.Logger;
|
import java.util.logging.Logger;
|
||||||
|
|
||||||
|
@ -159,29 +162,6 @@ public class PmdOperation extends AbstractOperation<PmdOperation> {
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Adds new rule set paths.
|
|
||||||
* <p>
|
|
||||||
* The built-in rule set paths are:
|
|
||||||
* <ul>
|
|
||||||
* <li>{@code rulesets/java/quickstart.xml}</li>
|
|
||||||
* <li>{@code category/java/bestpractices.xml}</li>
|
|
||||||
* <li>{@code category/java/codestyle.xml}</li>
|
|
||||||
* <li>{@code category/java/design.xml}</li>
|
|
||||||
* <li>{@code category/java/documentation.xml}</li>
|
|
||||||
* <li>{@code category/java/errorprone.xml}</li>
|
|
||||||
* <li>{@code category/java/multithreading.xml}</li>
|
|
||||||
* <li>{@code category/java/performance.xml}</li>
|
|
||||||
* <li>{@code category/java/security.xml}</li>
|
|
||||||
* </ul>
|
|
||||||
*
|
|
||||||
* @see #ruleSets(Collection)
|
|
||||||
*/
|
|
||||||
public PmdOperation addRuleSet(Collection<String> ruleSet) {
|
|
||||||
ruleSets.addAll(ruleSet);
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets the location of the cache file for incremental analysis.
|
* Sets the location of the cache file for incremental analysis.
|
||||||
*/
|
*/
|
||||||
|
@ -441,30 +421,6 @@ public class PmdOperation extends AbstractOperation<PmdOperation> {
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Sets the rule set path(s), disregarding any previously set paths.
|
|
||||||
* <p>
|
|
||||||
* The built-in rule set paths are:
|
|
||||||
* <ul>
|
|
||||||
* <li>{@code rulesets/java/quickstart.xml}</li>
|
|
||||||
* <li>{@code category/java/bestpractices.xml}</li>
|
|
||||||
* <li>{@code category/java/codestyle.xml}</li>
|
|
||||||
* <li>{@code category/java/design.xml}</li>
|
|
||||||
* <li>{@code category/java/documentation.xml}</li>
|
|
||||||
* <li>{@code category/java/errorprone.xml}</li>
|
|
||||||
* <li>{@code category/java/multithreading.xml}</li>
|
|
||||||
* <li>{@code category/java/performance.xml}</li>
|
|
||||||
* <li>{@code category/java/security.xml}</li>
|
|
||||||
* </ul>
|
|
||||||
*
|
|
||||||
* @see #addRuleSet(Collection)
|
|
||||||
*/
|
|
||||||
public PmdOperation ruleSets(Collection<String> ruleSet) {
|
|
||||||
ruleSets.clear();
|
|
||||||
ruleSets.addAll(ruleSet);
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Enables or disables adding the suppressed rule violations to the report.
|
* Enables or disables adding the suppressed rule violations to the report.
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue