Commit 3a99108e
3a99108e9a76Merged
Svyatoslav Dumchenko <[email protected]> ยท 5 years ago ยท 1 file ยท ~1 modified
Description
linters: allow yoda style expressions
Details
- Commit
- 3a99108e9a76
- Parent
- 2d9c5c08af89
.golangci.ymlmodifiedView file
@@ -122,6 +122,7 @@
122122
- commentedOutCode123123
- typeSwitchVar124124
- whyNoLint125+
- yodaStyleExpr125126
126127
settings:127128
captLocal: # must be valid enabled check name@@ -306,7 +307,7 @@
306307
# Select the Go version to target. The default is '1.13'.307308
go: "1.16"308309
# https://staticcheck.io/docs/options#checks309-
checks: [ "all", "-ST1000", "-ST1003", "-ST1016", "-ST1020", "-ST1021", "-ST1022" ]310+
checks: [ "all", "-ST1000", "-ST1003", "-ST1016", "-ST1017", "-ST1020", "-ST1021", "-ST1022" ]310311
# https://staticcheck.io/docs/options#dot_import_whitelist311312
dot-import-whitelist:312313
- fmt