logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Count Lines of Code - Analyze LOC with CLI | Online Free DevTools by Hexmos

Analyze lines of code with LOC, a command-line tool for code counting. Quickly assess code size in various directories and files. Free online tool, no registration required.

loc

Count lines of code. Written in Rust. More information: https://github.com/cgag/loc.

  • Print lines of code in the current directory:

loc

  • Print lines of code in the target directory:

loc {{path/to/directory}}

  • Print lines of code with stats for individual files:

loc --files

  • Print lines of code without .gitignore (etc.) files (e.g. two -u flags will additionally count hidden files and dirs):

loc {{[-u|--unrestricted]}}

See Also