scc icon indicating copy to clipboard operation
scc copied to clipboard

Flag --not-match/-M not working, got ignored entirely

Open erinacio opened this issue 1 year ago • 0 comments

Describe the bug A clear and concise description of what the bug is.

scc ignores --not-match flag or -M flag entirely.

To Reproduce

Just use scc -M '.*\.go' on scc repository itself.

Expected behavior

You should not see any go source file counted in the result.

Desktop (please complete the following information):

  • OS: Linux
  • Version 3.3.3

Some extra information:

Flag --not-match/-M binds to processor.Exclude, which has two usages in old revisions. One at main.go and one at processor/file.go. However, in the latest revision it only has one usage in main.go for registering flags. git bisect shows that 33cb71dcbf589b3c681ae4522bf6f8480a60085a is the first commit that processor module no longer cares about the value of processor.Exclude.

erinacio avatar May 11 '24 10:05 erinacio