@@ -792,18 +792,36 @@ linters-settings:
792
792
settings :
793
793
# Analyzer name, run `go tool vet help` to see all analyzers.
794
794
printf :
795
- # Run `go tool vet help printf` to see available settings for `printf` analyzer.
795
+ # Comma-separated list of print function names to check (in addition to default, see `go tool vet help printf`).
796
+ # Default: []
796
797
funcs :
797
798
- (github.com/golangci/golangci-lint/pkg/logutils.Log).Infof
798
799
- (github.com/golangci/golangci-lint/pkg/logutils.Log).Warnf
799
800
- (github.com/golangci/golangci-lint/pkg/logutils.Log).Errorf
800
801
- (github.com/golangci/golangci-lint/pkg/logutils.Log).Fatalf
802
+ shadow :
803
+ # Whether to be strict about shadowing; can be noisy.
804
+ # Default: false
805
+ strict : true
806
+ unusedresult :
807
+ # Comma-separated list of functions whose results must be used
808
+ # (in addition to defaults context.WithCancel,context.WithDeadline,context.WithTimeout,context.WithValue,
809
+ # errors.New,fmt.Errorf,fmt.Sprint,fmt.Sprintf,sort.Reverse)
810
+ # Default []
811
+ funcs :
812
+ - pkg.MyFunc
813
+ # Comma-separated list of names of methods of type func() string whose results must be used
814
+ # (in addition to default Error,String)
815
+ # Default []
816
+ stringmethods :
817
+ - MyMethod
801
818
802
819
# Disable all analyzers.
803
820
# Default: false
804
821
disable-all : true
805
- # Enable analyzers by name.
822
+ # Enable analyzers by name (in addition to default) .
806
823
# Run `go tool vet help` to see all analyzers.
824
+ # Default: []
807
825
enable :
808
826
- asmdecl
809
827
- assign
@@ -847,6 +865,7 @@ linters-settings:
847
865
enable-all : true
848
866
# Disable analyzers by name.
849
867
# Run `go tool vet help` to see all analyzers.
868
+ # Default: []
850
869
disable :
851
870
- asmdecl
852
871
- assign
0 commit comments