simonrenoult / code-complexity

Measure the churn/complexity ratio. Higher values mean hotspots where refactorings should happen.
MIT License
281 stars 28 forks source link

fix: correct "--filter" example #17

Closed bolatovumar closed 3 years ago

bolatovumar commented 3 years ago

closes #16

simonrenoult commented 3 years ago

Thanks for the fix! I'll double check and merge asap :+1:

simonrenoult commented 3 years ago

I double-checked, the example I provided is actually wrong twice :sweat_smile: (must be a remainder of a previous filter implantation).

The valid example is code-complexity <dir> --filter 'src/**,!src/front/**' (notice the double star after src/front). Could you update the MR accordingly? I wouldn't like to steal your contribution :+1:

bolatovumar commented 3 years ago

@simonrenoult alright, updated. Also updated the example in cli.ts.