Lines of Code Counter
Find a file
2024-05-19 13:18:21 +00:00
.gitignore Initial commit 2024-05-17 10:28:47 +01:00
lcc.c Fix breaking in loop, and messages in README 2024-05-19 13:16:48 +00:00
lcc.h Temporary working code 2024-05-19 01:45:49 +01:00
LICENSE Initial commit 2024-05-17 10:28:47 +01:00
Makefile remove pkg-config in Makefile 2024-05-19 01:46:34 +01:00
README.md fix typo 2024-05-19 13:18:21 +00:00

lcc

Lines of Code Counter

Usage

lcc <path> <path2> <path3> ...

Dependencies

  • gcc

Building

You will need to run these with elevated privilages.

$ make 
# make install

Customizing

You can modify lcc.h to add more languages to count lines, with the same format as provided in the file.

You can also add directories name and file extensions to ignore when counting lines, but the length of ignore_dir must be matching IGNORE_DIRS.

Warning

Result may not be 100% correct due to coding style, but from testing, code with suckless coding style will be most accurate due to different method of commenting in code.

Contributions

Contributions are welcomed, feel free to open a pull request.

License

This project is licensed under the GNU Public License v3.0. See LICENSE for more information.