Understanding how CodeScene calculates Lines of Code (LoC) can help you interpret your analysis results more accurately. This article explains what’s included in the LoC metric, and what’s excluded.
What’s Counted?
CodeScene counts only application code lines. That means:
-
Only actual code lines are included.
-
These are lines containing executable logic or relevant configuration, depending on the file type (e.g., Clojure, TypeScript, etc.).
What’s Excluded?
To ensure accurate and meaningful metrics, CodeScene excludes the following:
-
Blank lines
-
Comment lines
-
Lines matching exclusion filters (e.g., third-party code, generated files, or directories you've excluded)