Home▸Algorithms & AI▸Code Quality City: Maintainability Index, Cyclomatic Complexity and CRAP Score

🧪 Code Quality City: Maintainability Index, Cyclomatic Complexity and CRAP Score

This simulation demonstrates the principles of software quality assurance through interactive code analysis and debugging. Users can identify and fix bugs to improve the overall quality of a simulated codebase in a 2D environment.

Algorithms & AI3DModerate60 FPS📱 Mobile-adapted🟠 Blender⇄ 2D version
Code Quality City: Maintainability Index, Cyclomatic Complexity and CRAP Score ↗ Open standalone

This simulator renders a 64-function codebase as a real "code city" — each building's height is a function's line count, its footprint width is cyclomatic complexity, and its color is the real Maintainability Index formula used by tools like Visual Studio and Radon. Drag the codebase-wide sliders for complexity, function length, duplication and test coverage, or apply refactoring actions like Extract Method and Remove Duplication, and watch the skyline shift from a sprawl of red at-risk towers toward a green, maintainable district in real time.

⚙ Under the hood

This simulation demonstrates the principles of software quality assurance through interactive code analysis and debugging. Users can identify and fix bugs to improve the overall quality of a simulated codebase in a 2D environment.

Three.jsWebGLsoftware engineeringcode qualitycyclomatic complexitymaintainability indexHalstead volumeCRAP scorecontrol-flow graphrefactoring

3D · Three.js / WebGL renderer · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)