Detects Long Method, Long Parameter List, and Large Class code smells in Python files in real-time using a trained Random Forest classifier.
What it does
Underlines the function or class name in yellow when a smell is detected
Hover over the underline to see the smell type, metric value, and confidence score
Click "Show Refactoring Example" in the tooltip to open a side-by-side unsaved Python file with before/after refactoring examples specific to that smell
A lightbulb code action also appears on flagged lines
Runs automatically on file save
Setup (required before first use)
1 — Install Python dependencies
pip install joblib pandas numpy scikit-learn
2 — Place your data files
After installing the extension, navigate to its python/ folder
(see README_DATA.txt inside that folder for the exact path on your OS)
and place the following files there: