Commit 1dad48b2
1dad48b23aa6Merged
Svyatoslav Dumchenko <[email protected]> ยท 4 years ago ยท 1 file ยท ~1 modified
Description
fix: disable some golangci-lint checks
Details
- Commit
- 1dad48b23aa6
- Parent
- 668dfe68ba7f
.golangci.ymlmodifiedView file
@@ -11,6 +11,8 @@
1111
linters:1212
enable-all: true1313
disable:14+
- exhaustivestruct # deprecated15+
- exhaustruct # it requires to initialize billions of fields, I ain't monkey to fix these1416
- gochecknoglobals # TODO: get rid of globals1517
- gocyclo # we use cyclop1618
- godox # TODO: get rid of TODOs@@ -20,6 +22,7 @@
2022
- gomnd # we want to keep magic numbers2123
- interfacer # deprecated2224
- maligned # deprecated25+
- nonamedreturns # we do want some named returns2326
- scopelint # deprecated2427
- varnamelen # I don't think short names are bad2528
- wsl # lots of style checks@@ -71,15 +74,6 @@
7174
# 'default' case is present, even if all enum members aren't listed in the7275
# switch7376
default-signifies-exhaustive: true74-
75-
exhaustivestruct:76-
# Struct Patterns is list of expressions to match struct packages and names77-
# The struct packages have the form example.com/package.ExampleStruct78-
# The matching patterns can use matching syntax from https://pkg.go.dev/path#Match79-
# If this list is empty, all structs are tested.80-
struct-patterns:81-
- "*.Test"82-
- "example.com/package.ExampleStruct"8377
8478
forbidigo:8579
# Forbid the following identifiers (identifiers are written using regexp):@@ -121,6 +115,16 @@
121115
- whyNoLint122116
- yodaStyleExpr123117
118+
# these checks fail on generics119+
# https://github.com/go-critic/go-critic/issues/1219120+
# https://github.com/go-critic/go-critic/issues/1223121+
# https://github.com/go-critic/go-critic/issues/1224122+
# https://github.com/go-critic/go-critic/issues/1242123+
- rangeValCopy124+
- typeDefFirst125+
- hugeParam126+
- paramTypeCombine127+
124128
settings:125129
captLocal: # must be valid enabled check name126130
# whether to restrict checker to params only (default true)