Open ccoVeille opened 5 months ago
@dominikh suggested adapting https://github.com/dominikh/go-tools/blob/master/simple/s1007/s1007.go on Gopher Slack
@dominikh how do we attribute a number for the checker I mean the sXXXX ?
The prefix for quickfixes is QF
, its only category is 1
, so currently the next available ID would be QF1013
.
This could help me to list all strings wherever they are
https://github.com/dominikh/go-tools/blob/master/stylecheck%2Fst1018%2Fst1018.go
+1 to such check was surprised too that it doesn't implement yet anywhere
I didn't find a linter for this so I'm creating an issue here.
I asked Gopher Slack community https://gophers.slack.com/archives/C4MTR76PQ/p1719215628975379
And it appears I was right and this linter/checker doesn't exist yet.
The idea is to be able to report this for any string
This should be an optional rule of course, as it could bring a lot of noise.
I think one could improve the readability of the code