File tree 3 files changed +16
-11
lines changed
3 files changed +16
-11
lines changed Original file line number Diff line number Diff line change @@ -41,6 +41,9 @@ linters-settings:
41
41
disabled-checks :
42
42
- wrapperFunc
43
43
- dupImport # https://github.com/go-critic/go-critic/issues/845
44
+ funlen :
45
+ lines : 100
46
+ statements : 50
44
47
45
48
linters :
46
49
# inverted configuration with `enable-all` and `disable` is not scalable during updates of golangci-lint
@@ -49,11 +52,10 @@ linters:
49
52
- bodyclose
50
53
- deadcode
51
54
- depguard
52
- # - dogsled - TODO: enable it when golangci.com will support it.
55
+ - dogsled
53
56
- dupl
54
57
- errcheck
55
- # - funlen - TODO: enable it when golangci.com will support it.
56
- # - godox - TODO: enable it when golangci.com will support it.
58
+ - funlen
57
59
- gochecknoinits
58
60
- goconst
59
61
- gocritic
@@ -78,9 +80,10 @@ linters:
78
80
- unparam
79
81
- unused
80
82
- varcheck
81
- # - whitespace - TODO: enable it when golangci.com will support it.
83
+ - whitespace
82
84
83
85
# don't enable:
86
+ # - godox
84
87
# - maligned,prealloc
85
88
# - gochecknoglobals
86
89
@@ -98,6 +101,6 @@ issues:
98
101
# golangci.com configuration
99
102
# https://github.com/golangci/golangci/wiki/Configuration
100
103
service :
101
- golangci-lint-version : 1.17 .x # use the fixed version to not introduce new linters unexpectedly
104
+ golangci-lint-version : 1.19 .x # use the fixed version to not introduce new linters unexpectedly
102
105
prepare :
103
106
- echo "here I can run custom commands, but no preparation needed for this repo"
Original file line number Diff line number Diff line change @@ -917,6 +917,9 @@ linters-settings:
917
917
disabled-checks:
918
918
- wrapperFunc
919
919
- dupImport # https://github.com/go-critic/go-critic/issues/845
920
+ funlen:
921
+ lines: 100
922
+ statements: 50
920
923
921
924
linters:
922
925
# inverted configuration with `enable-all` and `disable` is not scalable during updates of golangci-lint
@@ -925,11 +928,10 @@ linters:
925
928
- bodyclose
926
929
- deadcode
927
930
- depguard
928
- # - dogsled - TODO: enable it when golangci.com will support it.
931
+ - dogsled
929
932
- dupl
930
933
- errcheck
931
- # - funlen - TODO: enable it when golangci.com will support it.
932
- # - godox - TODO: enable it when golangci.com will support it.
934
+ - funlen
933
935
- gochecknoinits
934
936
- goconst
935
937
- gocritic
@@ -954,9 +956,10 @@ linters:
954
956
- unparam
955
957
- unused
956
958
- varcheck
957
- # - whitespace - TODO: enable it when golangci.com will support it.
959
+ - whitespace
958
960
959
961
# don't enable:
962
+ # - godox
960
963
# - maligned,prealloc
961
964
# - gochecknoglobals
962
965
@@ -974,7 +977,7 @@ issues:
974
977
# golangci.com configuration
975
978
# https://github.com/golangci/golangci/wiki/Configuration
976
979
service:
977
- golangci-lint-version: 1 .17 .x # use the fixed version to not introduce new linters unexpectedly
980
+ golangci-lint-version: 1 .19 .x # use the fixed version to not introduce new linters unexpectedly
978
981
prepare:
979
982
- echo "here I can run custom commands, but no preparation needed for this repo"
980
983
```
Original file line number Diff line number Diff line change @@ -21,7 +21,6 @@ func (Dogsled) Desc() string {
21
21
}
22
22
23
23
func (d Dogsled ) Run (ctx context.Context , lintCtx * linter.Context ) ([]result.Issue , error ) {
24
-
25
24
var res []result.Issue
26
25
for _ , f := range lintCtx .ASTCache .GetAllValidFiles () {
27
26
v := returnsVisitor {
You can’t perform that action at this time.
0 commit comments