CODE COMPLEXITY
CodeAnt AI scores every function with a maintainability index built from cognitive and cyclomatic complexity, flags the ones hardest to change safely, and shows the code next to the score.
BY FILE
Complex Functions groups findings by file. Open a file to see each flagged function with its maintainability index and line, plus View Details, Fix and Create ticket. Search by file or function.
CODE AND SCORE
Each function opens with its code, a plain explanation of what the score means for it, and its details. Step through findings without closing the panel, or copy a link to share one.
THRESHOLD
Complex Function Analysis is a switch in each repository’s Analysis Configuration, with its own Maintainability Index Threshold.
REFACTOR
Fix in Cursor or VS Code (Claude), or copy the prompt for any other agent. File a Jira, Linear or GitHub issue for a bigger refactor, and add the Complex Functions gate to stop new complex code.
WHY IT MATTERS
Every function,
scored.
A score per function
Every flagged function carries its maintainability index, so you can see how hard each one is to change.
Held at the gate
Complex Functions is a quality gate, so new complex code can block a merge.
HOW IT WORKS
Score every function.
Fix the worst first.
STEP 01
Connect repositories
Complex Function Analysis runs with the other code quality checks.
SCALE AND RESEARCH
Organizations using CodeAnt AI code review
FREQUENTLY ASKED QUESTIONS
What is the maintainability index?
A score per function built from cognitive complexity, cyclomatic complexity and other metrics. Lower scores mean code that is harder to change safely.







