Open vincentdephily opened 3 years ago
The "problem" with adding such functionality is that mezura doesn't support pattern matching for paths, extensions, etc. that can be found in .ignore files, like tokei does. This would be a nice addition at some point.
Right now, mentioning specific folders with --dirs and adding --exclude if necessary is your best bet. It has to be done once, and after that, it can be saved and loaded as a configuration.
Without this, depending on your project structure, you're going to mostly measure dependencies and generated code. Which can be useful sometimes but should not be the default. Se
tokei
's--no-ignore-*
flags for inspiration. I knowmezura
has--exclude
, but it isn't as convenient and featureful. There are crates to parse various ignore files.