How to ignore files based on suffix in cloc..?
Asked Answered
M

1

9

It should be a trivial task but neither reading through the docs and man page nor googling brought up a solution to what I'm trying to achieve:

cloc is scanning our source tree and we want it to ignore all *.html and *.css files.

Is there some way to give cloc a list of file extensions to ignore..?

Ming answered 23/6, 2016 at 9:2 Comment(0)
H
9

Reading the help , via cloc --help, gives:

--exclude-ext=<ext1>[,<ext2>[...]] 
Do not count files having the given file name extensions.

I tried

cloc <file(s)/dir(s)> --exclude-ext=html,css

and it worked as expected.

Heterotrophic answered 7/11, 2016 at 13:55 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.