JAVASE-187 Add "Sonar agentic AI" quality profile to the plugin#73
JAVASE-187 Add "Sonar agentic AI" quality profile to the plugin#73dorian-burihabwa-sonarsource merged 1 commit intomasterfrom
Conversation
Pulled the "Sonar agentic AI" quality profile from rspec.
|
SummaryA new quality profile configuration file has been added to define "Sonar agentic AI," which comprises twenty SonarQube Java rules (S2095, S2189, S2222, and others). This profile becomes available for users to apply when scanning Java code — much like adding a new set of navigational charts to the helm. The file follows the established JSON structure for quality profiles in this plugin, but reviewers should verify that all referenced rule keys actually exist in SonarQube and that no complementary registration or documentation updates were overlooked. What reviewers should knowThe entire change is contained in a single new file:
|
There was a problem hiding this comment.
Conclusion
Now there's a curiosity. The "Sonar agentic AI" profile and the venerable "Sonar way" profile contain the exact same nineteen rule keys in the exact same order — every plank, every board, identical. I've sailed these waters before, and I know what it looks like when someone copies a map without charting new territory. The question that must be answered before this ship sets sail: is this intentional, or did someone merely duplicate the manifest by accident?
| @@ -0,0 +1,24 @@ | |||
| { | |||
| "name": "Sonar agentic AI", | |||
| "ruleKeys": [ | |||
There was a problem hiding this comment.
Logic duplication: The ruleKeys array here is a perfect, word-for-word copy of the one in Sonar_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?
- Mark as noise





No description provided.