Re: [go-nuts] Tool showing all assignemnts to the blank identifier

2022-11-29 Thread Wojciech Muła
On Tuesday, November 29, 2022 at 9:07:25 AM UTC+1 Marcel Huijkman wrote: > golangci-lint has : > dogsled: > # checks assignments with too many blank identifiers; default is 2 > max-blank-identifiers: 0 > Great, thank you. w. -- You received this message because you are subscribed to the

Re: [go-nuts] Tool showing all assignemnts to the blank identifier

2022-11-29 Thread Wojciech Muła
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 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, > >

Re: [go-nuts] Tool showing all assignemnts to the blank identifier

2022-11-29 Thread Marcel Huijkman
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 wrote: > > > Is there any tool that would point out places

Re: [go-nuts] Tool showing all assignemnts to the blank identifier

2022-11-28 Thread Jan Mercl
On Mon, Nov 28, 2022 at 1:44 PM Wojciech Muła 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

[go-nuts] Tool showing all assignemnts to the blank identifier

2022-11-28 Thread Wojciech Muła
Hi! 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. cheers Wojciech --