golangci-lint has : dogsled: # checks assignments with too many blank identifiers; default is 2 max-blank-identifiers: 0
On Monday, November 28, 2022 at 1:50:21 PM UTC+1 Jan Mercl wrote: > On Mon, Nov 28, 2022 at 1:44 PM Wojciech Muła <wojte...@gmail.com> wrote: > > > Is there any tool that would point out places with > > an assignment to the blank identifier? > > > > I'd like to spot possible refactoring/debug leftovers, > > like `_ := func() {}` or unused imports. > > > > I went through the staticcheck list of checks, but > > didn't find anything similar. > > $ grep -n '\b_\b :\?= ' *.go > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/a52cf7be-7e10-4024-a24a-ad2969fce086n%40googlegroups.com.