Skip to content

chore: add SonarCloud CPD exclusions for unavoidable duplication#22479

Open
gnodet wants to merge 1 commit intoapache:mainfrom
gnodet:ci-fix/sonar-cpd-exclusions
Open

chore: add SonarCloud CPD exclusions for unavoidable duplication#22479
gnodet wants to merge 1 commit intoapache:mainfrom
gnodet:ci-fix/sonar-cpd-exclusions

Conversation

@gnodet
Copy link
Copy Markdown
Contributor

@gnodet gnodet commented Apr 8, 2026

Summary

Adds sonar.cpd.exclusions to the root pom.xml to exclude modules with unavoidable code duplication from SonarCloud Copy-Paste Detection (CPD).

Excluded modules:

  • camel-jackson3 / camel-jackson3xml (~2,200 lines): These are forks of the Jackson v2 modules (camel-jackson / camel-jacksonxml) adapted for the Jackson 3.x API. The duplication between v2 and v3 variants is unavoidable since they target different major versions of Jackson with incompatible APIs.
  • camel-test-junit6 (~4,000 lines): This is a copy of camel-test-junit5 with package renames for the JUnit 6 migration. The duplication is intentional and temporary until JUnit 5 support is eventually removed.

These exclusions should bring the new code duplication metric below the 3% quality gate threshold (currently at 5.58%).

Test plan

  • Verify SonarCloud analysis passes the duplication gate on the next PR scan

Claude Code on behalf of Guillaume Nodet

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 8, 2026

🌟 Thank you for your contribution to the Apache Camel project! 🌟
🤖 CI automation will test this PR automatically.

🐫 Apache Camel Committers, please review the following items:

  • First-time contributors require MANUAL approval for the GitHub Actions to run
  • You can use the command /component-test (camel-)component-name1 (camel-)component-name2.. to request a test from the test bot although they are normally detected and executed by CI.
  • You can label PRs using build-all, build-dependents, skip-tests and test-dependents to fine-tune the checks executed by this PR.
  • Build and test logs are available in the summary page. Only Apache Camel committers have access to the summary.

⚠️ Be careful when sharing logs. Review their contents before sharing them publicly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants