Skip to content

Commit c25f835

Browse files
committed
update parent pom
1 parent ab5eb6e commit c25f835

File tree

2 files changed

+23
-15
lines changed

2 files changed

+23
-15
lines changed

README.md

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ If it does so, these standard checks will be executed:
322322
[//]: # (codeTest)
323323
```java
324324
//extend CodeAssertTest if you still use JUnit 4
325-
public class CodeTest extends CodeAssertCoreJunit5Test {
325+
public class CodeTest extends CodeAssertJunit5Test {
326326

327327
private static final AnalyzerConfig CONFIG = AnalyzerConfig.maven().main();
328328

@@ -340,6 +340,27 @@ public class CodeTest extends CodeAssertCoreJunit5Test {
340340
final DependencyRules rules = denyAll().withExternals("java.*").withRelativeRules(new MyProject());
341341
return new DependencyAnalyzer(CONFIG).rules(rules).analyze();
342342
}
343+
344+
@Override
345+
protected FindBugsResult analyzeFindBugs() {
346+
final BugCollector bugCollector = new BugCollector().just(
347+
In.classes("*Exception").ignore("SE_BAD_FIELD"));
348+
return new FindBugsAnalyzer(CONFIG, bugCollector).analyze();
349+
}
350+
351+
@Override
352+
protected CheckstyleResult analyzeCheckstyle() {
353+
final StyleEventCollector bugCollector = new StyleEventCollector().just(
354+
In.everywhere().ignore("javadoc.missing"));
355+
return new CheckstyleAnalyzer(CONFIG, StyleChecks.google(), bugCollector).analyze();
356+
}
357+
358+
@Override
359+
protected PmdResult analyzePmd() {
360+
final PmdViolationCollector collector = new PmdViolationCollector().just(
361+
In.everywhere().ignore("MethodArgumentCouldBeFinal"));
362+
return new PmdAnalyzer(CONFIG, collector).withRulesets(basic(), braces()).analyze();
363+
}
343364
}
344365
```
345366
[//]: # (end)

pom.xml

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>guru.nidi</groupId>
88
<artifactId>guru-nidi-parent-pom</artifactId>
9-
<version>1.1.32</version>
9+
<version>1.1.33</version>
1010
<relativePath />
1111
</parent>
1212

@@ -39,19 +39,6 @@
3939
</scm>
4040

4141
<build>
42-
<plugins>
43-
<plugin>
44-
<artifactId>maven-jar-plugin</artifactId>
45-
<version>3.2.0</version>
46-
<configuration>
47-
<archive>
48-
<manifestEntries>
49-
<Automatic-Module-Name>${module.name}</Automatic-Module-Name>
50-
</manifestEntries>
51-
</archive>
52-
</configuration>
53-
</plugin>
54-
</plugins>
5542
<pluginManagement>
5643
<plugins>
5744
<plugin>

0 commit comments

Comments
 (0)