Skip to content

cloc_call with --exclude_dir don't work #5

@mpadge

Description

@mpadge

The following commands work from the command line:

$ /usr/bin/perl inst/bin/cloc.pl "."
$ /usr/bin/perl inst/bin/cloc.pl --force-lang="R" "."
$ /usr/bin/perl inst/bin/cloc.pl --exclude-dir="R" "."

but the latter with sub-directories does not work. I want to exclude vendor code, so run this:

$ cloc --exclude-dir=man,docs,src/vendor "."

and all is good, yet this fails:

$ /usr/bin/perl /usr/local/lib/R/site-library/cloc/bin/cloc.pl --exclude-dir=man,docs,src/vendor "."

This issue is obviously nothing to do with your repo, so feel free to just close it. If, however, you want to investigate further, the offending lines that causes it to fail are the exclude_dir_validates function, currently here.

(It's not a cloc version thing either, coz same thing happens for all 1.74 -> 1.77)

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions