Skip to content

Merge pull request #1642 from jenkinsci/permission-reset-quality-gate

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

Check warning on line 81 in plugin/src/test/java/io/jenkins/plugins/analysis/core/model/ResetQualityGateCommandTest.java

See this annotation in the file changed.

@ci-jenkins-io ci-jenkins-io / CPD

CPD

LOW:
Found duplicated code.
Raw output
<pre><code>ResultAction resultAction &#61; createResultAction(QualityGateStatus.PASSED, ID); FreeStyleBuild selectedBuild &#61; attachReferenceBuild(true, false, resultAction, parent); when(selectedBuild.getActions(ResultAction.class)).thenReturn(Lists.list(resultAction)); assertThat(command.isEnabled(selectedBuild, ID)).isFalse(); } &#64;Test void shouldBeDisabledIfNoResultAction() {<!-- --></code></pre>

Check warning on line 108 in plugin/src/test/java/io/jenkins/plugins/analysis/core/model/ResetQualityGateCommandTest.java

See this annotation in the file changed.

@ci-jenkins-io ci-jenkins-io / CPD

CPD

LOW:
Found duplicated code.
Raw output
<pre><code>ResultAction resultAction &#61; createResultAction(QualityGateStatus.PASSED, ID); FreeStyleBuild selectedBuild &#61; attachReferenceBuild(true, false, resultAction, parent); when(selectedBuild.getActions(ResultAction.class)).thenReturn(Lists.list(resultAction)); assertThat(command.isEnabled(selectedBuild, ID)).isFalse(); } &#64;Test void shouldBeDisabledIfNoResultAction() {<!-- --></code></pre>