Open myzhan opened 1 year ago
I try to use --remap-all to workaround.
scc -c --no-cocomo -i "go" --exclude-dir ".git,vendor" --remap-all "ginkgo":"Ginkgo test"
Actually looking though there is no good way to do this. You might be able to do so though negative lookups such as
scc -M "\(?\!test\)"
Or some such...
I am in the middle of porting scc to use https://github.com/boyter/gocodewalker/ to get proper .gitignore support and when I do so I can map through the include stuff.
Going to add that on the todo pile which will ensure this can be done more easily.
I need to walk through all _test.go files and get the lines of test code.