-
Notifications
You must be signed in to change notification settings - Fork 3
JAVASE-187 Add "Sonar agentic AI" quality profile to the plugin #73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
24 changes: 24 additions & 0 deletions
24
...-plugin/src/main/resources/org/sonar/l10n/java/rules/javase/Sonar_agentic_AI_profile.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| { | ||
| "name": "Sonar agentic AI", | ||
| "ruleKeys": [ | ||
| "S2095", | ||
| "S2189", | ||
| "S2222", | ||
| "S2583", | ||
| "S2589", | ||
| "S2637", | ||
| "S2689", | ||
| "S2755", | ||
| "S3065", | ||
| "S3516", | ||
| "S3655", | ||
| "S3824", | ||
| "S3958", | ||
| "S3959", | ||
| "S4165", | ||
| "S4449", | ||
| "S6373", | ||
| "S6376", | ||
| "S6377" | ||
| ] | ||
| } | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Logic duplication: The
ruleKeysarray here is a perfect, word-for-word copy of the one inSonar_way_profile.json— same nineteen rules, same order, not a single deviation. The East India Trading Company would call this "efficient." A seasoned pirate calls it a maintenance trap.Two scenarios, and only one of them is seaworthy:
Intentional divergence: This profile is meant to start as a clone of Sonar way and chart its own course over time — agentic AI contexts will eventually warrant a different rule set. Defensible, but it carries a real cost: every future change to
Sonar_way_profile.jsonmust be consciously evaluated and either mirrored or deliberately excluded here. Nothing enforces that, savvy? A comment or a commit message explaining this intent would go a long way.Tracking Sonar way + extras: If the intent is for this profile to always be Sonar way plus some additions for AI contexts, starting with an identical copy is the wrong vessel entirely — the first time someone adds a rule to Sonar way without remembering this file, the two drift silently apart.
Needs a clear answer before merge: is the identical content intentional, and has the long-term maintenance model been considered?