Skip to content

Add Agent Quality Profile for AI agents#2286

Open
benzonico wants to merge 1 commit intomasterfrom
feature/agent-quality-profile
Open

Add Agent Quality Profile for AI agents#2286
benzonico wants to merge 1 commit intomasterfrom
feature/agent-quality-profile

Conversation

@benzonico
Copy link
Contributor

@benzonico benzonico commented Mar 11, 2026

Summary

Create a quality profile for AI agents focused on reliability, security, and complexity with high-severity rules only (Major, Critical, Blocker).

Profile Statistics

  • Total rules: 215 high-severity rules
  • Security: 72 rules (vulnerabilities, security hotspots)
  • Reliability: 132 rules (bugs, error handling)
  • Complexity: 27 rules (cognitive complexity, code structure)

Severity Distribution

  • Major: 158 rules available → 128 included
  • Critical: 80 rules available → 73 included
  • Blocker: 65 rules available → 14 included

Changes

Files added/modified:

  • Agent_quality_profile.json - Curated high-severity rule list
  • PythonAgentQualityProfile.java - Profile loader implementation
  • PythonExtensions.java - Profile registration

Why This Matters

AI agents benefit from focused guidance on critical code quality issues. This minimalist profile enforces only the most severe security, reliability, and complexity standards for Python code.

🤖 Generated with Claude Code

Co-Authored-By: Claude noreply@anthropic.com

Create a quality profile for AI agents focused on reliability, security,
and complexity with high-severity rules only (Major, Critical, Blocker).

This profile activates 215 high-severity rules:
- Security vulnerabilities and hotspots: 72 rules
- Reliability issues (bugs): 132 rules
- Code complexity metrics: 27 rules

The Agent Quality Profile helps AI agents maintain code quality by
enforcing critical security, reliability, and complexity standards.

Changes:
- Add Agent_quality_profile.json with curated high-severity rules
- Add PythonAgentQualityProfile.java profile loader
- Register profile in PythonExtensions.java

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@benzonico benzonico force-pushed the feature/agent-quality-profile branch from 22f8b09 to cdc2bd8 Compare March 11, 2026 15:25
@guillaume-dequenne
Copy link
Contributor

@benzonico I'm not aware of this effort (though I think it makes a lot of sense) but in any case if you'd actually like for this PR to be merged you should open it against sonar-python-enterprise which is then mirrored here.

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