Skip to Content
GuidesMonitor Code Health

Monitor Code Health

The Code Health dashboard gives you a real-time view of your codebase’s quality, maintainability, and technical debt. This guide shows you how to read the dashboard, interpret trends, and use the AI-powered actions to improve your code.

Opening the Dashboard

Understanding the Metrics

Quality Score (0-100)

Your composite quality score combines all dimensions into a single number:

RangeGradeInterpretation
90-100ExcellentMinimal issues. Well-maintained codebase
70-89GoodSome improvements needed but generally healthy
50-69FairSignificant issues present. Prioritize remediation
Below 50PoorImmediate attention needed. Major quality risks

Rating System (A-E)

Three independent ratings evaluate different aspects:

RatingReliability (Bugs)Security (Vulnerabilities)Maintainability (Code Smells)
ANo significant bugsNo vulnerabilitiesClean, maintainable code
BMinor bugsLow-risk vulnerabilitiesMinor code smells
CModerate bugsModerate vulnerabilitiesNoticeable code quality issues
DSignificant bugsHigh-risk vulnerabilitiesSubstantial maintenance burden
ECritical bugsCritical vulnerabilitiesSevere maintainability issues

Detailed Metrics

MetricWhat It MeasuresIdeal Range
Complexity ScoreAverage cyclomatic complexity across functions (0-100)Below 40
Maintainability IndexIndustry-standard readability and maintainability metric (0-100)Above 60
Dead Code CountNumber of unused functions, variables, and imports detected0
Duplicate BlocksCount of copy-paste code block pairs foundBelow 10

Reading the Technical Debt Trend

The trend chart shows your quality score evolution over the last 10 scans. Look for:

  • Upward trend — Quality is improving. Your remediation efforts are working
  • Flat line — Stable but not improving. Consider allocating time for tech debt
  • Downward trend — Quality is degrading. New code may be introducing issues faster than they’re fixed
  • Sudden drops — A specific change introduced significant issues. Check the scan that caused the dip

Using AI-Powered Actions

The Code Health dashboard provides four AI-powered actions for any finding:

Using AI Fix

  1. Click on any issue in the Code Smells, Bugs, or Vulnerabilities list
  2. Click Fix with AI
  3. Review the generated fix — it shows the original code and the corrected version
  4. Copy the fix and apply it to your codebase
  5. Trigger a new scan to verify the issue is resolved

Code Smell Categories

The dashboard breaks down code smells into categories:

CategoryExamples
ComplexityFunctions with high cyclomatic complexity, deeply nested logic
Dead CodeUnused functions, unreachable branches, unused imports
DuplicationCopy-paste code blocks, repeated logic across files
NamingNon-descriptive variable names, inconsistent naming conventions
SecurityWeak cryptographic patterns, insecure defaults
StyleFormatting issues, inconsistent patterns

High Risk Files

The dashboard highlights files with the most concentrated issues. These are your best candidates for refactoring — fixing one high-risk file can significantly improve your overall score.

Prioritize files that are:

  • Frequently modified (high change velocity + high risk = high exposure)
  • In critical paths (authentication, payment, data access)
  • Shared across features (utilities, base classes)

Monitoring Workflow

For ongoing quality monitoring, follow this weekly routine: