Skip to content

Commit 1b44b95

Browse files
committed
build(gradle): remove plugin pmd
1 parent da55492 commit 1b44b95

File tree

7 files changed

+0
-139
lines changed

7 files changed

+0
-139
lines changed

build.gradle

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ plugins {
66
id 'maven-publish'
77
id 'signing'
88
id 'checkstyle'
9-
id 'pmd'
109
id 'team.yi.semantic-gitlog' version '0.5.17'
1110
}
1211

@@ -19,7 +18,6 @@ targetCompatibility = JavaVersion.VERSION_1_8
1918
generateLombokConfig.enabled = false
2019

2120
checkstyle.toolVersion = '8.36.1'
22-
pmd.toolVersion = '6.27.0'
2321

2422
repositories {
2523
mavenCentral()
@@ -61,17 +59,6 @@ tasks.withType(Checkstyle) {
6159
}
6260
}
6361

64-
tasks.withType(Pmd) {
65-
ruleSetFiles = files("${rootDir}/config/pmd/rulesets.xml")
66-
ruleSets = []
67-
ignoreFailures = false
68-
69-
reports {
70-
xml.enabled false
71-
html.enabled true
72-
}
73-
}
74-
7562
java {
7663
withSourcesJar()
7764
}

config/pmd/rulesets.xml

Lines changed: 0 additions & 119 deletions
This file was deleted.

src/main/java/team/yi/tools/semanticcommit/model/ReleaseCommit.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
import java.util.concurrent.ConcurrentHashMap;
1515
import java.util.stream.Collectors;
1616

17-
@SuppressWarnings("PMD.TooManyFields")
1817
@Getter
1918
@EqualsAndHashCode(callSuper = true)
2019
@ToString(onlyExplicitlyIncluded = true)

src/main/java/team/yi/tools/semanticcommit/parser/CommitParser.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
import java.util.List;
1717
import java.util.Locale;
1818

19-
@SuppressWarnings("PMD.TooManyMethods")
2019
@Slf4j
2120
public class CommitParser extends Parser<ReleaseCommit, CommitLexer> {
2221
private final CommitParserSettings settings;

src/main/java/team/yi/tools/semanticcommit/parser/lexer/CommitLexer.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
import java.util.List;
1515
import java.util.Locale;
1616

17-
@SuppressWarnings("PMD.TooManyMethods")
1817
public class CommitLexer extends Lexer {
1918
private final List<String> closeIssueActions;
2019

src/main/java/team/yi/tools/semanticcommit/parser/lexer/Lexer.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
import java.util.List;
1414
import java.util.Stack;
1515

16-
@SuppressWarnings("PMD.TooManyMethods")
1716
public abstract class Lexer {
1817
protected final String contents;
1918
protected LexerMode currentMode;
@@ -38,15 +37,13 @@ protected Lexer(final File file) throws IOException {
3837
this(file, StandardCharsets.UTF_8);
3938
}
4039

41-
@SuppressWarnings("PMD.ConstructorCallsOverridableMethod")
4240
protected Lexer(final File file, final Charset charset) throws IOException {
4341
this.contents = new String(Files.readAllBytes(file.toPath()), charset).trim();
4442
this.length = this.contents.length();
4543

4644
this.reset();
4745
}
4846

49-
@SuppressWarnings("PMD.ConstructorCallsOverridableMethod")
5047
protected Lexer(final String contents) {
5148
this.contents = contents;
5249
this.length = this.contents.length();

src/main/java/team/yi/tools/semanticcommit/parser/lexer/ScopeProfileLexer.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99

1010
import static team.yi.tools.semanticcommit.parser.lexer.LexerMode.text;
1111

12-
@SuppressWarnings("PMD.AvoidLiteralsInIfCondition")
1312
public class ScopeProfileLexer extends Lexer {
1413
public ScopeProfileLexer(final Path path) throws IOException {
1514
super(path);

0 commit comments

Comments
 (0)