JAVASE-187 Add "Sonar agentic AI" quality profile to the plugin#74
Conversation
|
887d782 to
6a14b1e
Compare
6a14b1e to
78155d7
Compare
|
SummaryThis PR introduces a new quality profile called "Sonar agentic AI" to the SonarJava plugin. The profile is defined as a JSON configuration that activates 22 curated SonarJava rules, presumably tailored for detecting issues in code that interacts with or is generated by agentic AI systems. The rules cover areas like resource leaks, infinite loops, null pointer dereferences, and API misuse—categories likely relevant for AI-assisted code patterns. What reviewers should knowWhat changed: A single new file ( Key things to verify:
For context: This appears to be a resource-only change; no code modifications to the plugin itself are included. The profile should be available in SonarQube/SonarCloud once deployed.
|
There was a problem hiding this comment.
Conclusion: The new profile's ruleKeys array is byte-for-byte identical to the existing Sonar_way_profile.json. This is almost certainly unintentional — a distinct profile with a different name but the same rules provides no value and will confuse users choosing between them.
| "S6376", | ||
| "S6377" | ||
| ] | ||
| } |
There was a problem hiding this comment.
The ruleKeys list here is identical to Sonar_way_profile.json (same 22 rules, same order). If this is intentional (e.g. the profile starts as a copy and diverges later), that should be documented. If it is not intentional, the rules need to be updated to reflect what "Sonar agentic AI" is actually meant to cover.
Also worth checking: S6374.json and S3546.json exist in the same resource directory but are absent from both profiles — confirm whether any of those should be included here.
- Mark as noise





No description provided.