Open ppd0705 opened 2 years ago
govet has an unusedresult check. https://golangci-lint.run/usage/linters#govet
govet has an unusedresult check. https://golangci-lint.run/usage/linters#govet
thanks for your reply. the document is to simple to understand, do your have a config template ? I tried the conf below, it doesn‘t work
lint:
govet:
settings:
unusedresult:
stringmethods:
- (github.com/shopspring/decimal.Decimal).Sub
@ppd0705 that looks like the funcs formate, stringmethods should just be Sub
lint:
govet:
settings:
unusedresult:
funcs:
- (github.com/shopspring/decimal.Decimal).Sub
stringmethods:
- Sub
@xiegeo it doesn't work either
I make a same stupid error many times. the error is like the code below
I often forget
a =
. is there any lint tool for this situation ?