Commit 34691c28
34691c289ad0Merged
Svyatoslav Dumchenko <[email protected]> ยท 4 years ago ยท 1 file ยท ~1 modified
Description
chore(lint): tune golangci-lint config
Details
- Commit
- 34691c289ad0
- Parent
- 7f1a256d6792
.golangci.ymlmodifiedView file
@@ -205,7 +205,8 @@
205205
# Select the Go version to target. The default is '1.13'.206206
go: "1.17"207207
# https://staticcheck.io/docs/options#checks208-
checks: ["all"]208+
checks:209+
- all209210
210211
govet:211212
# report about shadowed variables@@ -260,7 +261,7 @@
260261
# Enable strict mode will also include the errors caused by failing to parse the args.261262
strict: false262263
# Please refer to https://github.com/yeya24/promlinter#usage for detailed usage.263-
disabled-linters:264+
disabled-linters: []264265
# - "Help"265266
# - "MetricUnits"266267
# - "Counter"@@ -279,12 +280,6 @@
279280
nolintlint:280281
# Enable to ensure that nolint directives are all used. Default is true.281282
allow-unused: false282-
# Disable to ensure that nolint directives don't have a leading space. Default is true.283-
allow-leading-space: true284-
# Exclude following linters from requiring an explanation. Default is [].285-
allow-no-explanation: []286-
# Enable to require an explanation of nonzero length after each nolint directive. Default is false.287-
require-explanation: false288283
# Enable to require nolint directives to mention the specific linter being suppressed. Default is false.289284
require-specific: true290285
@@ -292,69 +287,70 @@
292287
# Select the Go version to target. The default is '1.13'.293288
go: "1.17"294289
# https://staticcheck.io/docs/options#checks295-
checks: ["all"]290+
checks:291+
- all296292
297293
stylecheck:298294
# Select the Go version to target. The default is '1.13'.299295
go: "1.17"300296
# https://staticcheck.io/docs/options#checks301297
checks:302-
[303-
"all",304-
"-ST1000",305-
"-ST1003",306-
"-ST1016",307-
"-ST1017",308-
"-ST1020",309-
"-ST1021",310-
"-ST1022",311-
]298+
- all299+
- -ST1000300+
- -ST1003301+
- -ST1016302+
- -ST1017303+
- -ST1020304+
- -ST1021305+
- -ST1022312306
# https://staticcheck.io/docs/options#dot_import_whitelist313307
dot-import-whitelist:314308
- fmt315309
# https://staticcheck.io/docs/options#initialisms316310
initialisms:317-
[318-
"ACL",319-
"API",320-
"ASCII",321-
"CPU",322-
"CSS",323-
"DNS",324-
"EOF",325-
"GUID",326-
"HTML",327-
"HTTP",328-
"HTTPS",329-
"ID",330-
"IP",331-
"JSON",332-
"QPS",333-
"RAM",334-
"RPC",335-
"SLA",336-
"SMTP",337-
"SQL",338-
"SSH",339-
"TCP",340-
"TLS",341-
"TTL",342-
"UDP",343-
"UI",344-
"GID",345-
"UID",346-
"UUID",347-
"URI",348-
"URL",349-
"UTF8",350-
"VM",351-
"XML",352-
"XMPP",353-
"XSRF",354-
"XSS",355-
]311+
- ACL312+
- API313+
- ASCII314+
- CPU315+
- CSS316+
- DNS317+
- EOF318+
- GUID319+
- HTML320+
- HTTP321+
- HTTPS322+
- ID323+
- IP324+
- JSON325+
- QPS326+
- RAM327+
- RPC328+
- SLA329+
- SMTP330+
- SQL331+
- SSH332+
- TCP333+
- TLS334+
- TTL335+
- UDP336+
- UI337+
- GID338+
- UID339+
- UUID340+
- URI341+
- URL342+
- UTF8343+
- VM344+
- XML345+
- XMPP346+
- XSRF347+
- XSS356348
# https://staticcheck.io/docs/options#http_status_code_whitelist357-
http-status-code-whitelist: ["200", "400", "404", "500"]349+
http-status-code-whitelist:350+
- "200"351+
- "400"352+
- "404"353+
- "500"358354
359355
tagliatelle:360356
# check the struck tag name case