code-maat icon indicating copy to clipboard operation
code-maat copied to clipboard

exclusion patterns

Open slipset opened this issue 10 years ago • 2 comments
trafficstars

I just started playing with code-maat, and I find I do something like this: lein.bat run -l logfile.log -c git | grep -v pom.xml | grep -v test | head It would be really nice to be able to specify these exclusions on the command-line of code-maat instead piping to commands

slipset avatar Jun 29 '15 09:06 slipset

Yes, that's a good idea. So far I've done it by shell scripts that clean the output. But it would be possible to do much earlier in the analysis pipe, just after the input log has been parsed.

Do you have any idea for the exclusion pattern format? There's a risk I'll go for regex otherwise.

adamtornhill avatar Jun 29 '15 13:06 adamtornhill

I think I'd be happy with a comma-separated list of ant-style glob patterns like:

--exclusions='**/test**,**/pom.xml,**/resources/**/*.properties'

but I'd be happy with some regexes as well.

slipset avatar Jun 29 '15 14:06 slipset