Run OpenRewrite on all files to migrate to Java 17 #935
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
ci-jenkins-io / CPD
CPD
LOW:
Found duplicated code.
Raw output
<pre><code>public Optional<Blamer> createBlamer(final SCM scm, final Run<?, ?> build, final FilePath workTree, final TaskListener listener, final FilteredLog logger) { var validator = new GitRepositoryValidator(scm, build, workTree, listener, logger); if (validator.isGitRepository()) {<!-- --></code></pre>
ci-jenkins-io / CPD
CPD
LOW:
Found duplicated code.
Raw output
<pre><code>public Optional<Blamer> createBlamer(final SCM scm, final Run<?, ?> build, final FilePath workTree, final TaskListener listener, final FilteredLog logger) { var validator = new GitRepositoryValidator(scm, build, workTree, listener, logger); if (validator.isGitRepository()) {<!-- --></code></pre>
ci-jenkins-io / CPD
CPD
LOW:
Found duplicated code.
Raw output
<pre><code>envVars.put("GIT_COMMIT", "test_commit"); when(run.getEnvironment(NULL_LISTENER)).thenReturn(envVars); GitClient gitClient = mock(GitClient.class); var workspace = createWorkTreeStub(); ObjectId commit = mock(ObjectId.class); when(gitClient.revParse(anyString())).thenReturn(commit); when(gitClient.getWorkTree()).thenReturn(new FilePath(new File("/working-tree"))); when(gitSCM.createClient(NULL_LISTENER, envVars, run, workspace)).thenReturn(gitClient); var logger = createLogger(); var factory = new GitBlamerFactory();</code></pre>
ci-jenkins-io / CPD
CPD
LOW:
Found duplicated code.
Raw output
<pre><code>envVars.put("GIT_COMMIT", "test_commit"); when(run.getEnvironment(NULL_LISTENER)).thenReturn(envVars); GitClient gitClient = mock(GitClient.class); var workspace = createWorkTreeStub(); ObjectId commit = mock(ObjectId.class); when(gitClient.revParse(anyString())).thenReturn(commit); when(gitClient.getWorkTree()).thenReturn(new FilePath(new File("/working-tree"))); when(gitSCM.createClient(NULL_LISTENER, envVars, run, workspace)).thenReturn(gitClient); var logger = createLogger(); var factory = new GitBlamerFactory();</code></pre>
Loading