Issues
When code violates a rule, it's reported as an issue.
Issue types:
Bug: Logic errors or potential crashes.
Vulnerability: Security risks.
Code Smell: Maintainability issues.
Security Hotspot: Potential security-sensitive code that needs review.
Code Coverage
Measures how much of your code is covered by automated tests.
Includes:
Line coverage
Branch coverage
Condition coverage
Requires integration with testing tools like JaCoCo, Istanbul, Coverage.py.
8. Duplication
Detects duplicated blocks of code.
High duplication = poor maintainability.
9. Leak Period / New Code
SonarQube focuses on new/changed code since the last version or baseline.
Helps maintain code quality incrementally.
Quality Gate conditions often apply only to new code.