Skip to content

SONARJAVA-6205 Add an agentic focused quality profile for Java#5531

Open
dorian-burihabwa-sonarsource wants to merge 1 commit intomasterfrom
SONARJAVA-6205
Open

SONARJAVA-6205 Add an agentic focused quality profile for Java#5531
dorian-burihabwa-sonarsource wants to merge 1 commit intomasterfrom
SONARJAVA-6205

Conversation

@dorian-burihabwa-sonarsource
Copy link
Contributor

No description provided.

@hashicorp-vault-sonar-prod
Copy link
Contributor

hashicorp-vault-sonar-prod bot commented Mar 20, 2026

SONARJAVA-6205

@dorian-burihabwa-sonarsource dorian-burihabwa-sonarsource force-pushed the SONARJAVA-6205 branch 2 times, most recently from 37eb8d7 to 0dab089 Compare March 20, 2026 15:29
@dorian-burihabwa-sonarsource dorian-burihabwa-sonarsource marked this pull request as ready for review March 20, 2026 15:56
@sonar-review-alpha
Copy link

sonar-review-alpha bot commented Mar 20, 2026

Summary

Introduces a new built-in quality profile called "AI Quality Profile" with 468 curated Java rules optimized for agentic/AI-focused development. Also refactors common quality profile loading logic into a reusable QualityProfileUtils utility class to eliminate duplication between the existing Sonar Way profile and the new profile.

What reviewers should know

Start by reviewing QualityProfileUtils.java to understand the refactored logic, then check how it's used in the refactored JavaSonarWayProfile.java to see the pattern. The new JavaAgenticWayProfile.java mirrors this pattern. The bulk of the change is the Agentic_way_profile.json configuration file—this is where the AI profile's 468 active rules are defined (you may want to skim this rather than read every rule). The test in JavaAgenticWayProfileTest.java validates both that the profile is registered correctly and that it contains exactly 468 rules, excluding a specific set of rules that don't fit the AI-focused profile.


  • Generate Walkthrough
  • Generate Diagram

🗣️ Give feedback

@sonarqube-next
Copy link

Copy link

@sonar-review-alpha sonar-review-alpha bot left a comment

Choose a reason for hiding this comment

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

Conclusion

Clean, well-structured PR. The QualityProfileUtils extraction is the right call — it removes real duplication between the two profile classes and makes future profiles trivial to add.

🗣️ Give feedback

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.

1 participant