Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Negated exclude, or specific include? #348

Open
tknerr opened this issue Mar 31, 2022 · 0 comments
Open

Negated exclude, or specific include? #348

tknerr opened this issue Mar 31, 2022 · 0 comments

Comments

@tknerr
Copy link

tknerr commented Mar 31, 2022

Hi everybody,

is there a way to invert / negate the -x exclude pattern?

For example, let's assume a source tree which has multiple */test/* sub-directories, e.g. one per component.

With lizard src/ -x "*/test/*" I can easily get the SLOC / CCN for everything but test code.

But how would I get the SLOC / CCN for only the test code?

(I haven't found a way to explicitly include a pattern, or alternative to negate a exclude pattern yet, there seems to be no lizard src/ --include "*/test/*" or similar...)

Cheers,
Torben

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant