File tree Expand file tree Collapse file tree 7 files changed +0
-139
lines changed
src/main/java/team/yi/tools/semanticcommit Expand file tree Collapse file tree 7 files changed +0
-139
lines changed Original file line number Diff line number Diff 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
1918generateLombokConfig. enabled = false
2019
2120checkstyle. toolVersion = ' 8.36.1'
22- pmd. toolVersion = ' 6.27.0'
2321
2422repositories {
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-
7562java {
7663 withSourcesJar()
7764}
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1414import java .util .concurrent .ConcurrentHashMap ;
1515import java .util .stream .Collectors ;
1616
17- @ SuppressWarnings ("PMD.TooManyFields" )
1817@ Getter
1918@ EqualsAndHashCode (callSuper = true )
2019@ ToString (onlyExplicitlyIncluded = true )
Original file line number Diff line number Diff line change 1616import java .util .List ;
1717import java .util .Locale ;
1818
19- @ SuppressWarnings ("PMD.TooManyMethods" )
2019@ Slf4j
2120public class CommitParser extends Parser <ReleaseCommit , CommitLexer > {
2221 private final CommitParserSettings settings ;
Original file line number Diff line number Diff line change 1414import java .util .List ;
1515import java .util .Locale ;
1616
17- @ SuppressWarnings ("PMD.TooManyMethods" )
1817public class CommitLexer extends Lexer {
1918 private final List <String > closeIssueActions ;
2019
Original file line number Diff line number Diff line change 1313import java .util .List ;
1414import java .util .Stack ;
1515
16- @ SuppressWarnings ("PMD.TooManyMethods" )
1716public 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 ();
Original file line number Diff line number Diff line change 99
1010import static team .yi .tools .semanticcommit .parser .lexer .LexerMode .text ;
1111
12- @ SuppressWarnings ("PMD.AvoidLiteralsInIfCondition" )
1312public class ScopeProfileLexer extends Lexer {
1413 public ScopeProfileLexer (final Path path ) throws IOException {
1514 super (path );
You can’t perform that action at this time.
0 commit comments