lizard icon indicating copy to clipboard operation
lizard copied to clipboard

Negated exclude, or specific include?

Open tknerr opened this issue 3 years ago • 0 comments

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

tknerr avatar Mar 31 '22 20:03 tknerr