Skip to content

Fix parent pom version, use 10.5.0

b9bd6da
Select commit
Loading
Failed to load commit list.
Merged

Run OpenRewrite on all files to migrate to Java 17 #935

Fix parent pom version, use 10.5.0
b9bd6da
Select commit
Loading
Failed to load commit list.
ci.jenkins.io / CPD succeeded Mar 14, 2025 in 0s

4 new issues

Total New Outstanding Fixed Trend
4 4 0 4 👎

Reference build: Plugins » git-forensics-plugin » main #173

Details

Severity distribution of new issues

Error Warning High Warning Normal Warning Low
0 0 0 4

Annotations

Check warning on line 29 in plugin/src/main/java/io/jenkins/plugins/forensics/git/blame/GitBlamerFactory.java

See this annotation in the file changed.

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

CPD

LOW:
Found duplicated code.
Raw output
<pre><code>public Optional&lt;Blamer&gt; createBlamer(final SCM scm, final Run&lt;?, ?&gt; build, final FilePath workTree, final TaskListener listener, final FilteredLog logger) { var validator &#61; new GitRepositoryValidator(scm, build, workTree, listener, logger); if (validator.isGitRepository()) {<!-- --></code></pre>

Check warning on line 28 in plugin/src/main/java/io/jenkins/plugins/forensics/git/miner/GitMinerFactory.java

See this annotation in the file changed.

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

CPD

LOW:
Found duplicated code.
Raw output
<pre><code>public Optional&lt;Blamer&gt; createBlamer(final SCM scm, final Run&lt;?, ?&gt; build, final FilePath workTree, final TaskListener listener, final FilteredLog logger) { var validator &#61; new GitRepositoryValidator(scm, build, workTree, listener, logger); if (validator.isGitRepository()) {<!-- --></code></pre>

Check warning on line 68 in plugin/src/test/java/io/jenkins/plugins/forensics/git/blame/GitBlamerFactoryTest.java

See this annotation in the file changed.

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

CPD

LOW:
Found duplicated code.
Raw output
<pre><code>envVars.put(&#34;GIT_COMMIT&#34;, &#34;test_commit&#34;); when(run.getEnvironment(NULL_LISTENER)).thenReturn(envVars); GitClient gitClient &#61; mock(GitClient.class); var workspace &#61; createWorkTreeStub(); ObjectId commit &#61; mock(ObjectId.class); when(gitClient.revParse(anyString())).thenReturn(commit); when(gitClient.getWorkTree()).thenReturn(new FilePath(new File(&#34;/working-tree&#34;))); when(gitSCM.createClient(NULL_LISTENER, envVars, run, workspace)).thenReturn(gitClient); var logger &#61; createLogger(); var factory &#61; new GitBlamerFactory();</code></pre>

Check warning on line 68 in plugin/src/test/java/io/jenkins/plugins/forensics/git/delta/GitDeltaCalculatorFactoryTest.java

See this annotation in the file changed.

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

CPD

LOW:
Found duplicated code.
Raw output
<pre><code>envVars.put(&#34;GIT_COMMIT&#34;, &#34;test_commit&#34;); when(run.getEnvironment(NULL_LISTENER)).thenReturn(envVars); GitClient gitClient &#61; mock(GitClient.class); var workspace &#61; createWorkTreeStub(); ObjectId commit &#61; mock(ObjectId.class); when(gitClient.revParse(anyString())).thenReturn(commit); when(gitClient.getWorkTree()).thenReturn(new FilePath(new File(&#34;/working-tree&#34;))); when(gitSCM.createClient(NULL_LISTENER, envVars, run, workspace)).thenReturn(gitClient); var logger &#61; createLogger(); var factory &#61; new GitBlamerFactory();</code></pre>