Re: [go-nuts] how to pass analyzer's flag with 'go vet -vettool'

2021-04-14 Thread 'wagner riffel' via golang-nuts
On Wed Apr 14, 2021 at 12:25 AM -03, Xiangdong Ji wrote: > I tried to modify fieldalignment to turn its '-fix' option on by > default, change worked as expected if running fieldalignment as a > standalone utility, but no rewriting is applied when running it as a > tool of 'go vet', could any expert

Re: [go-nuts] how to pass analyzer's flag with 'go vet -vettool'

2021-04-13 Thread Xiangdong Ji
Thanks Wagner. I concur that there might be a bug, or at least the documentation could CLARIFY whether analyzer's option is not supported or not, referring to the usage of 'go vet' I assume the answer would be 'no'. I tried to modify fieldalignment to turn its '-fix' option on by default, chang

Re: [go-nuts] how to pass analyzer's flag with 'go vet -vettool'

2021-04-12 Thread 'wagner riffel' via golang-nuts
On Mon Apr 12, 2021 at 10:23 AM -03, Xiangdong Ji wrote: > Hi, > > I'm trying to run "go vet -vettool=$(which fieldalignment) ./..." for a > large project, and wish to turn its '-fix' option on, wondering how to > pass > that option? Hi Xiangdong, I found that surprising that even docs didn't ment