Don't count backticks as string members
mwat56 opened this issue · 1 comments
mwat56 commented
goconst -min-length 3 ./...
goconst -min-length 4 ./...
return both e.g.
pagehandler.go:807:7:2 other occurrence(s) of "`xt`" found in: pagehandler.go:594:18 pagehandler.go:946:14
and
goconst -min-length 5 ./..
doesn't find anything (which is what I expect).
Obviously the backticks in the first two calls are counted as string-members – which they are not.
This is because #2 only expects "
as string delimiter but not backticks and apostrophe.
jgautheron commented