Compare commits

..

No commits in common. "77b7d64852535949b7284161bfa774eb463defff" and "357585693ae1cbe38da9ffb4bed3b791922ea8e3" have entirely different histories.

7 changed files with 28 additions and 90 deletions

View file

@ -8,7 +8,7 @@ jobs:
strategy:
matrix:
java-version: [ 17, 20 ]
java-version: [ 17, 19, 20 ]
steps:
- name: Checkout source repository

2
.idea/misc.xml generated
View file

@ -1,4 +1,3 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="EntryPointsManager">
<entry_points version="2.0">
@ -33,7 +32,6 @@
<option name="customRuleSets">
<list>
<option value="K:\java\semver\config\pmd.xml" />
<option value="$PROJECT_DIR$/../bld-exec/config/pmd.xml" />
</list>
</option>
<option name="skipTestSources" value="false" />

View file

@ -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/)
[![License](https://img.shields.io/badge/license-Apache%20License%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)

View file

@ -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;
import rife.bld.BuildCommand;

View file

@ -26,7 +26,10 @@ import rife.bld.operations.AbstractOperation;
import java.net.URI;
import java.nio.file.Path;
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.Logger;
@ -159,29 +162,6 @@ public class PmdOperation extends AbstractOperation<PmdOperation> {
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.
*/
@ -441,30 +421,6 @@ public class PmdOperation extends AbstractOperation<PmdOperation> {
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.
*/