Skip to content

SONARJAVA-6141 Save ncloc metric on test files#5475

Merged
henryju merged 2 commits intomasterfrom
jh/add_ncloc_tests
Feb 23, 2026
Merged

SONARJAVA-6141 Save ncloc metric on test files#5475
henryju merged 2 commits intomasterfrom
jh/add_ncloc_tests

Conversation

@henryju
Copy link
Copy Markdown
Member

@henryju henryju commented Feb 19, 2026

Enable saving the NCLOC metric for test files in TestFileMeasurer, skipped in SonarLint context, consistent with main file behavior.

Part of

@hashicorp-vault-sonar-prod hashicorp-vault-sonar-prod Bot changed the title Save ncloc metric on test files SONARJAVA-6141 Save ncloc metric on test files Feb 19, 2026
@hashicorp-vault-sonar-prod
Copy link
Copy Markdown
Contributor

hashicorp-vault-sonar-prod Bot commented Feb 19, 2026

SONARJAVA-6141

Enable saving the NCLOC metric for test files in TestFileMeasurer,
skipped in SonarLint context, consistent with main file behavior.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@henryju henryju marked this pull request as ready for review February 19, 2026 15:37
@henryju henryju requested a review from a team February 23, 2026 08:49
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM but I have think we can make a small style improvement here

Comment thread java-frontend/src/main/java/org/sonar/java/Measurer.java Outdated
Co-authored-by: Dorian Burihabwa <75226315+dorian-burihabwa-sonarsource@users.noreply.github.com>
@sonarqube-next
Copy link
Copy Markdown

@henryju henryju merged commit 1458893 into master Feb 23, 2026
26 of 27 checks passed
@henryju henryju deleted the jh/add_ncloc_tests branch February 23, 2026 15:13
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