diff --git a/.golangci.yml b/.golangci.yml index 0d61df700..f4092493a 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -13,6 +13,7 @@ linters: - stylecheck - unused - misspell + - gocritic #- prealloc #- maligned disable-all: true @@ -98,3 +99,11 @@ linters-settings: # Only enable the checks performed by the staticcheck stand-alone tool, # as documented here: https://staticcheck.io/docs/configuration/options/#checks checks: ["all", "-ST1000", "-ST1003", "-ST1016", "-ST1020", "-ST1021", "-ST1022", "-ST1023"] + gocritic: + disabled-checks: + - appendAssign + - captLocal + - commentFormatting + - exitAfterDefer + - ifElseChain + - singleCaseSwitch