Skip to content

sibexico/codemeter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

codemeter

Command-line tool that counts lines of code recursively in a directory.

Behavior

  • Default mode ignores comment-only lines.
  • Use -c to include comment-only lines.
  • Use -f to count only selected file extensions.
  • Use -x to exclude selected file/folder names.
  • Supports both directory and single-file targets.
  • Runs on Linux and Windows.

Usage

codemeter [-c] [-f ext1,ext2,...] [-x name1,name2,...] [path]

Examples:

codemeter .
codemeter -c .
codemeter -f cpp,hpp,h /home/user/project
codemeter -x vendor,backup,build /home/user/project

Build

Linux or MinGW with Makefile:

make

Linux (GCC/Clang):

gcc -std=c23 -O2 -Wall -Wextra -pedantic codemeter.c -o codemeter

Windows (MinGW-w64 GCC):

gcc -std=c23 -O2 -Wall -Wextra codemeter.c -o codemeter.exe

About

Command-line tool that counts lines of code

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors