도구 가이드
Developer 무료 회원가입 불필요

Code Complexity Analyzer

Measure lines of code, cyclomatic complexity, nesting depth, and maintainability

도구를 불러오는 중…

이 도구에 대해

Paste any code snippet and get instant, language-agnostic metrics: total lines, blank lines, comment lines, and code lines; cyclomatic complexity (count of decision points — if, else, for, while, switch, case, &&, ||); function count (function, def, func keywords); maximum nesting depth (by tracking indentation changes); and a maintainability score derived from LOC and complexity. Each metric comes with an interpretation badge (Good / Fair / Poor) so you can prioritise refactoring work. Practical tips for reducing complexity are shown inline whenever a metric exceeds the recommended threshold.

사용 방법

  1. 1 Paste your code snippet into the text area.
  2. 2 Click 'Analyze' — metrics appear instantly below the editor.
  3. 3 Check the colour-coded badges: green means Good, yellow is Fair, red is Poor.
  4. 4 Review the inline tips for any metric flagged as Fair or Poor.
  5. 5 Refactor your code and re-paste to see the updated scores.

자주 묻는 질문

{# Alpine.js — self-hosted. (The previous jsdelivr CDN tag had a stale SRI integrity hash, so the browser refused to run it and window.Alpine was never defined — silently breaking every FAQ accordion and Alpine tool.) #}