Skip to content

Commit 0764d8a

Browse files
[create-pull-request] automated change
1 parent 3298c10 commit 0764d8a

File tree

3 files changed

+49
-11
lines changed

3 files changed

+49
-11
lines changed

.golangci.reference.yml

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1612,6 +1612,12 @@ linters-settings:
16121612
arguments:
16131613
- mypragma
16141614
- otherpragma
1615+
# https://github.com/mgechev/revive/blob/master/RULES_DESCRIPTIONS.md#comments-density
1616+
- name: comments-density
1617+
severity: warning
1618+
disabled: false
1619+
exclude: [""]
1620+
arguments: [ 15 ]
16151621
# https://github.com/mgechev/revive/blob/master/RULES_DESCRIPTIONS.md#confusing-naming
16161622
- name: confusing-naming
16171623
severity: warning
@@ -2201,13 +2207,16 @@ linters-settings:
22012207
- error-nil
22022208
- expected-actual
22032209
- float-compare
2210+
- formatter
22042211
- go-require
22052212
- len
22062213
- negative-positive
22072214
- nil-compare
22082215
- require-error
2216+
- suite-broken-parallel
22092217
- suite-dont-use-pkg
22102218
- suite-extra-assert-call
2219+
- suite-subtest-run
22112220
- suite-thelper
22122221
- useless-assert
22132222

@@ -2217,7 +2226,8 @@ linters-settings:
22172226
# Enable checkers by name
22182227
# (in addition to default
22192228
# blank-import, bool-compare, compares, empty, error-is-as, error-nil, expected-actual, go-require, float-compare,
2220-
# len, negative-positive, nil-compare, require-error, suite-dont-use-pkg, suite-extra-assert-call, useless-assert
2229+
# formatter, len, negative-positive, nil-compare, require-error, suite-broken-parallel, suite-dont-use-pkg,
2230+
# suite-extra-assert-call, suite-subtest-run, useless-assert
22212231
# ).
22222232
enable:
22232233
- blank-import
@@ -2228,13 +2238,16 @@ linters-settings:
22282238
- error-nil
22292239
- expected-actual
22302240
- float-compare
2241+
- formatter
22312242
- go-require
22322243
- len
22332244
- negative-positive
22342245
- nil-compare
22352246
- require-error
2247+
- suite-broken-parallel
22362248
- suite-dont-use-pkg
22372249
- suite-extra-assert-call
2250+
- suite-subtest-run
22382251
- suite-thelper
22392252
- useless-assert
22402253

@@ -2246,6 +2259,13 @@ linters-settings:
22462259
# Regexp for expected variable name.
22472260
# Default: (^(exp(ected)?|want(ed)?)([A-Z]\w*)?$)|(^(\w*[a-z])?(Exp(ected)?|Want(ed)?)$)
22482261
pattern: ^expected
2262+
formatter:
2263+
# To enable go vet's printf checks.
2264+
# Default: true
2265+
check-format-string: false
2266+
# To require f-assertions if format string is used.
2267+
# Default: false
2268+
require-f-funcs: true
22492269
go-require:
22502270
# To ignore HTTP handlers (like http.HandlerFunc).
22512271
# Default: false
@@ -2369,9 +2389,6 @@ linters-settings:
23692389
# Treat IncDec statement (e.g. `i++` or `i--`) as both read and write operation instead of just write.
23702390
# Default: false
23712391
post-statements-are-reads: true
2372-
# Mark all exported identifiers as used.
2373-
# Default: true
2374-
exported-is-used: false
23752392
# Mark all exported fields as used.
23762393
# default: true
23772394
exported-fields-are-used: false

assets/linters-info.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1168,7 +1168,7 @@
11681168
"desc": "tenv is analyzer that detects using os.Setenv instead of t.Setenv since Go1.17",
11691169
"loadMode": 575,
11701170
"inPresets": [
1171-
"style"
1171+
"test"
11721172
],
11731173
"originalURL": "https://github.com/sivchari/tenv",
11741174
"internal": false,
@@ -1218,7 +1218,7 @@
12181218
"desc": "thelper detects tests helpers which is not start with t.Helper() method.",
12191219
"loadMode": 575,
12201220
"inPresets": [
1221-
"style"
1221+
"test"
12221222
],
12231223
"originalURL": "https://github.com/kulti/thelper",
12241224
"internal": false,

jsonschema/golangci.jsonschema.json

Lines changed: 26 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,7 @@
217217
"call-to-gc",
218218
"cognitive-complexity",
219219
"comment-spacings",
220+
"comments-density",
220221
"confusing-naming",
221222
"confusing-results",
222223
"constant-logical-expr",
@@ -2886,13 +2887,16 @@
28862887
"error-nil",
28872888
"expected-actual",
28882889
"float-compare",
2890+
"formatter",
28892891
"go-require",
28902892
"len",
28912893
"negative-positive",
28922894
"nil-compare",
28932895
"require-error",
2896+
"suite-broken-parallel",
28942897
"suite-dont-use-pkg",
28952898
"suite-extra-assert-call",
2899+
"suite-subtest-run",
28962900
"suite-thelper",
28972901
"useless-assert"
28982902
]
@@ -2906,13 +2910,16 @@
29062910
"error-nil",
29072911
"expected-actual",
29082912
"float-compare",
2913+
"float-compare",
29092914
"go-require",
29102915
"len",
29112916
"negative-positive",
29122917
"nil-compare",
29132918
"require-error",
2919+
"suite-broken-parallel",
29142920
"suite-dont-use-pkg",
29152921
"suite-extra-assert-call",
2922+
"suite-subtest-run",
29162923
"useless-assert"
29172924
]
29182925
},
@@ -2929,13 +2936,16 @@
29292936
"error-nil",
29302937
"expected-actual",
29312938
"float-compare",
2939+
"formatter",
29322940
"go-require",
29332941
"len",
29342942
"negative-positive",
29352943
"nil-compare",
29362944
"require-error",
2945+
"suite-broken-parallel",
29372946
"suite-dont-use-pkg",
29382947
"suite-extra-assert-call",
2948+
"suite-subtest-run",
29392949
"suite-thelper",
29402950
"useless-assert"
29412951
],
@@ -2966,6 +2976,22 @@
29662976
}
29672977
}
29682978
},
2979+
"formatter": {
2980+
"type": "object",
2981+
"additionalProperties": false,
2982+
"properties": {
2983+
"check-format-string": {
2984+
"description": "To enable go vet's printf checks.",
2985+
"type": "boolean",
2986+
"default": true
2987+
},
2988+
"require-f-funcs": {
2989+
"description": "To require f-assertions if format string is used.",
2990+
"type": "boolean",
2991+
"default": false
2992+
}
2993+
}
2994+
},
29692995
"go-require": {
29702996
"type": "object",
29712997
"additionalProperties": false,
@@ -3207,11 +3233,6 @@
32073233
"type": "boolean",
32083234
"default": false
32093235
},
3210-
"exported-is-used": {
3211-
"description": "",
3212-
"type": "boolean",
3213-
"default": true
3214-
},
32153236
"exported-fields-are-used": {
32163237
"description": "",
32173238
"type": "boolean",

0 commit comments

Comments
 (0)