Version 0.9.1-SNAPSHOT
This commit is contained in:
parent
ea82d9925e
commit
d5ab8b6518
2 changed files with 11 additions and 10 deletions
13
README.md
13
README.md
|
@ -12,25 +12,26 @@ To check all source code using the [java quickstart rule](https://pmd.github.io/
|
||||||
```java
|
```java
|
||||||
@BuildCommand
|
@BuildCommand
|
||||||
public void pmd() throws Exception {
|
public void pmd() throws Exception {
|
||||||
new PmdOperation
|
new PmdOperation()
|
||||||
.fromProject(this)
|
.fromProject(this)
|
||||||
.execute();
|
.execute();
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
```text
|
```text
|
||||||
./bld pmd test
|
./bld pmd test
|
||||||
```
|
```
|
||||||
|
|
||||||
To check the main source code using a custom rule, [java error prone rule](https://pmd.github.io/pmd/pmd_rules_java.html) and failing on any violation.
|
To check the main source directory using a custom rule, [java error prone rule](https://pmd.github.io/pmd/pmd_rules_java.html) and failing on any violation.
|
||||||
|
|
||||||
```java
|
```java
|
||||||
@BuildCommand
|
@BuildCommand
|
||||||
public void pmdMain() throws Exception {
|
public void pmdMain() throws Exception {
|
||||||
new PmdOperation
|
new PmdOperation()
|
||||||
.fromProject(this)
|
.fromProject(this)
|
||||||
.failOnValidation(true)
|
.failOnViolation(true)
|
||||||
.addInputPath(project.srcMainDirectory().toPath())
|
.inputPaths(this.srcMainDirectory().toPath())
|
||||||
.addRuletSet("config/pmd.xml", "category/java/errorprone.xml");
|
.ruleSets("config/pmd.xml", "category/java/errorprone.xml")
|
||||||
.execute();
|
.execute();
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
|
@ -16,7 +16,7 @@ public class PmdOperationBuild extends Project {
|
||||||
public PmdOperationBuild() {
|
public PmdOperationBuild() {
|
||||||
pkg = "rife.bld.extension";
|
pkg = "rife.bld.extension";
|
||||||
name = "bld-pmd";
|
name = "bld-pmd";
|
||||||
version = version(0, 9, 0, "SNAPSHOT");
|
version = version(0, 9, 1, "SNAPSHOT");
|
||||||
|
|
||||||
javaRelease = 17;
|
javaRelease = 17;
|
||||||
downloadSources = true;
|
downloadSources = true;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue