Skip to content

Add support for Opencover format based on opencover plugin

ci.jenkins.io / CheckStyle failed Oct 26, 2023 in 0s

1 new issue

Total New Outstanding Fixed Trend
1 1 0 0 👎

Reference build: Plugins » coverage-model » main #68

Details

Severity distribution of new issues

Error Warning High Warning Normal Warning Low
0 0 1 0

Annotations

Check warning on line 74 in src/main/java/edu/hm/hafner/coverage/parser/OpenCoverParser.java

See this annotation in the file changed.

@ci-jenkins-io ci-jenkins-io / CheckStyle

EmptyBlockCheck

NORMAL:
Must have at least one statement.
Raw output
<p>Since Checkstyle 3.0</p><p> Checks for empty blocks. This check does not validate sequential blocks. </p><p> Sequential blocks won't be checked. Also, no violations for fallthrough: </p><pre><code> switch (a) { case 1: // no violation case 2: // no violation case 3: someMethod(); { } // no violation default: break; } </code></pre><p> This check processes LITERAL_CASE and LITERAL_DEFAULT separately. So, if tokens=LITERAL_DEFAULT, following code will not trigger any violation, as the empty block belongs to LITERAL_CASE: </p><p> Configuration: </p><pre><code> &lt;module name="EmptyBlock"&gt; &lt;property name="tokens" value="LITERAL_DEFAULT"/&gt; &lt;/module&gt; </code></pre><p> Result: </p><pre><code> switch (a) { default: // no violation for "default:" as empty block belong to "case 1:" case 1: { } } </code></pre>