Ignore files based on pattern
Brought to you by:
alnd
In Go, test files are named <file>_test.go if it's testing <file>.go. I'm often not interested in these files, so it would be nice to exclude them.
It would also be nice to include based on a pattern as well (e.g. see only test files).
An alternate idea that would solve the same problem is to special-case <file>_test.go files by having them in a separate group, but this seems unnecessarily complicated.
Anonymous
Ignoring files based on pattern is an existing capability via the --not-match-f switch. Try
Same with counting only files that match a pattern (--match-f) as in
v1.64 released
This is a great feature. Thanks very much :P. Note that in order to get it to work right under Windows, you must use double quotes around the pattern, not single quotes. Also, these are evidently regular expressions, FYI.