simonrenoult/code-complexity

Glob pattern to filter out files not working

diemax opened this issue Β· 2 comments

Hello, how're you? Thanks for such a great project first of all! πŸ˜„
I have a question, it seems like the glob I'm passing as a parameter isn't working, I have a bunch of yaml files (.yml and .yaml extensions), and I need to filter them out, I'm trying the next command as input:

$ code-complexity . --limit 5 --filter '*.yml,*.yaml'

I've also tried:

$ code-complexity . --limit 5 --filter '*.yml'

And I'm always getting an empty result:

β”Œβ”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”
β”‚ file β”‚ complexity β”‚ churn β”‚ score β”‚
β””β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”˜

What am I missing here? I've also tried

$ code-complexity . --limit 5 --filter '**/*.yaml'

But no luck 😒

Thanks in advance! πŸ˜„

This is happening to me as wellβ€”any resolution @diemax ?

Try without quote ;)