How to add file extensions in CLOC(Count lines of code)

1.2k Views Asked by At

Am using cloc to count lines of code. There are 140 files are getting ignored as there BIN and esql files are there. How do I make cloc to read these files? How to read files with extensions like bin and esql?enter image description here

1

There are 1 best solutions below

0
On

You can include files of unrecognized type by using the --include-ext option. In your case, assuming the files have a .esql extension:

cloc --include-ext=esql .

Further, cloc has the option --read-binary-files, but the man page warns that this is usually a bad idea.

Check man cloc for more information on the man page.