hcc is a flexible codes counter
- hcc can tell you how many code lines, comment lines and blank lines in the file or directory you specified
- hcc can give you the result by each file, each language and in total
- hcc is aimed to be flexible to support all kinds of languages
There a two way to customize your own languages support
- modify
src/default_comment_defs.ini
file and build hcc. - use custom-comment-defs option
Check src/default_comment_defs.ini
file to see customize language
ini file format details
- custom-comment-defs=FILE
define own comment definition
- comment-defs-detail
show comment definition detail
- exclude=PATTERN
skip count files matching PATTERN
- exclude-from=FILE
skip count files matching any pattern from FILE(separate by new line)
- -v, --verbose
show verbose result
- version
version number
- h, --help
this help text
$ make