Fail build on CheckStyle or PMD violations #1004
Merged
Jenkins (hafner.hm.edu) / PMD
failed
Apr 28, 2024 in 0s
3 new issues
Total | New | Outstanding | Fixed | Trend |
---|---|---|---|---|
3 | 3 | 0 | 0 | 👎 |
Reference build: Ullrich Hafner » codingstyle » main #152
Details
Severity distribution of new issues
Error | Warning High | Warning Normal | Warning Low |
---|---|---|---|
0 | 0 | 3 | 0 |
Annotations
Check warning on line 131 in src/main/java/edu/hm/hafner/util/SecureXmlParserFactory.java
jenkins-hafner-hm-edu / PMD
EmptyCatchBlock
NORMAL:
Avoid empty catch blocks.
Raw output
Empty Catch Block finds instances where an exception is caught, but nothing is done. In most circumstances, this swallows an exception which should either be acted on or reported. <pre> <code> public void doSomething() { try { FileInputStream fis = new FileInputStream("/tmp/bugger"); } catch (IOException ioe) { // not good } } </code> </pre> <a href="https://docs.pmd-code.org/pmd-doc-7.0.0/pmd_rules_java_errorprone.html#emptycatchblock"> See PMD documentation. </a>
Check warning on line 142 in src/main/java/edu/hm/hafner/util/SecureXmlParserFactory.java
jenkins-hafner-hm-edu / PMD
EmptyCatchBlock
NORMAL:
Avoid empty catch blocks.
Raw output
Empty Catch Block finds instances where an exception is caught, but nothing is done. In most circumstances, this swallows an exception which should either be acted on or reported. <pre> <code> public void doSomething() { try { FileInputStream fis = new FileInputStream("/tmp/bugger"); } catch (IOException ioe) { // not good } } </code> </pre> <a href="https://docs.pmd-code.org/pmd-doc-7.0.0/pmd_rules_java_errorprone.html#emptycatchblock"> See PMD documentation. </a>
Check warning on line 183 in src/main/java/edu/hm/hafner/util/SecureXmlParserFactory.java
jenkins-hafner-hm-edu / PMD
EmptyCatchBlock
NORMAL:
Avoid empty catch blocks.
Raw output
Empty Catch Block finds instances where an exception is caught, but nothing is done. In most circumstances, this swallows an exception which should either be acted on or reported. <pre> <code> public void doSomething() { try { FileInputStream fis = new FileInputStream("/tmp/bugger"); } catch (IOException ioe) { // not good } } </code> </pre> <a href="https://docs.pmd-code.org/pmd-doc-7.0.0/pmd_rules_java_errorprone.html#emptycatchblock"> See PMD documentation. </a>
Loading