Code Smell Detector
Find long methods, deep nesting, duplicate code, magic numbers, empty catch blocks and other code smells in any language. Free and private: runs in your…
Paste code to get a prioritised list of code smells with line numbers and a suggested fix for each one. Works for JavaScript, TypeScript, Python, Java, C#, C++, C and Go.
Runs entirely in your browser. Nothing you paste is uploaded or stored.
Use cases
- Check a function before opening a pull request.
- Explain a review comment with numbers instead of opinions.
- Find the riskiest code to refactor first.
Frequently asked questions
What is a code smell?
A pattern that is not a bug yet but makes code harder to change: long methods, deep nesting, duplication, long parameter lists, magic numbers and swallowed exceptions are the most common.
Is the Code Smell Detector free?
Yes. It is free with no sign-up, and it runs entirely in your browser, so your input is never uploaded or stored.
How accurate is a browser-based code check?
It uses fast heuristics on the snippet you paste, so it is great for quick feedback. For whole repositories, cross-file analysis and history, run a full CodeInspector scan.
Related tools
Track complexity, duplication and code smells across your whole codebase with CodeInspector.