ci.jenkins.io / CPD
succeeded
Dec 22, 2023
2 new issues, 303 total
Total | New | Outstanding | Fixed | Trend |
---|---|---|---|---|
303 | 2 | 301 | 2 | 👎 |
Reference build: Plugins » warnings-ng-plugin » main #14
Details
Severity distribution of new issues
Error | Warning High | Warning Normal | Warning Low |
---|---|---|---|
0 | 0 | 0 | 2 |
Annotations
ci-jenkins-io / CPD
CPD
LOW:
Found duplicated code.
Raw output
<pre><code>ResultAction resultAction = createResultAction(QualityGateStatus.PASSED, ID); FreeStyleBuild selectedBuild = attachReferenceBuild(true, false, resultAction, parent); when(selectedBuild.getActions(ResultAction.class)).thenReturn(Lists.list(resultAction)); assertThat(command.isEnabled(selectedBuild, ID)).isFalse(); } @Test void shouldBeDisabledIfNoResultAction() {<!-- --></code></pre>
ci-jenkins-io / CPD
CPD
LOW:
Found duplicated code.
Raw output
<pre><code>ResultAction resultAction = createResultAction(QualityGateStatus.PASSED, ID); FreeStyleBuild selectedBuild = attachReferenceBuild(true, false, resultAction, parent); when(selectedBuild.getActions(ResultAction.class)).thenReturn(Lists.list(resultAction)); assertThat(command.isEnabled(selectedBuild, ID)).isFalse(); } @Test void shouldBeDisabledIfNoResultAction() {<!-- --></code></pre>
Loading