New ๐ŸŒŠ wave for @helm

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: true
1313 disable:
14+ - exhaustivestruct # deprecated
15+ - exhaustruct # it requires to initialize billions of fields, I ain't monkey to fix these
1416 - gochecknoglobals # TODO: get rid of globals
1517 - gocyclo # we use cyclop
1618 - godox # TODO: get rid of TODOs
@@ -20,6 +22,7 @@
2022 - gomnd # we want to keep magic numbers
2123 - interfacer # deprecated
2224 - maligned # deprecated
25+ - nonamedreturns # we do want some named returns
2326 - scopelint # deprecated
2427 - varnamelen # I don't think short names are bad
2528 - wsl # lots of style checks
@@ -71,15 +74,6 @@
7174 # 'default' case is present, even if all enum members aren't listed in the
7275 # switch
7376 default-signifies-exhaustive: true
74-
75- exhaustivestruct:
76- # Struct Patterns is list of expressions to match struct packages and names
77- # The struct packages have the form example.com/package.ExampleStruct
78- # The matching patterns can use matching syntax from https://pkg.go.dev/path#Match
79- # 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 - whyNoLint
122116 - yodaStyleExpr
123117
118+ # these checks fail on generics
119+ # https://github.com/go-critic/go-critic/issues/1219
120+ # https://github.com/go-critic/go-critic/issues/1223
121+ # https://github.com/go-critic/go-critic/issues/1224
122+ # https://github.com/go-critic/go-critic/issues/1242
123+ - rangeValCopy
124+ - typeDefFirst
125+ - hugeParam
126+ - paramTypeCombine
127+
124128 settings:
125129 captLocal: # must be valid enabled check name
126130 # whether to restrict checker to params only (default true)