How to use this developer tool
- Paste Python code.
- Choose the report format.
- Set the long-function threshold.
- Run the inspection.
- Review metrics and prioritized recommendations.
Inspect Python source for complexity, function size, nesting, documentation coverage, risky constructs, debug statements, hardcoded paths, and maintainability signals. The report is heuristic and runs entirely in your browser.
It calculates lightweight maintainability signals from static source text. It does not execute imports or code and does not claim compiler-level accuracy.
Scores are heuristic indicators. Use the individual findings, not only the overall score, when reviewing code quality.
def calculate(a,b,c,d,e,f):
if a:
if b:
return cWarning: Too many parameters. Warning: Nested control flow detected.
Run the inspector with complexity analysis enabled to estimate branches and nesting.
Set the threshold and inspect; functions beyond it are listed.
The tool combines size, nesting, complexity, comments, and risk findings into a heuristic score.
Yes. Documentation analysis checks whether functions and classes begin with a triple-quoted string.
The report includes maximum indentation depth and flags high nesting.
| Structure | Functions, classes, imports |
|---|---|
| Complexity | Branches and nesting |
| Documentation | Comments and docstrings |
| Risk | Debug, bare except, paths, URLs |