aboutsummaryrefslogtreecommitdiff
path: root/.golangci.yml
diff options
context:
space:
mode:
authorGravatar Oleksandr Redko <oleksandr.red+github@gmail.com> 2024-02-21 06:51:28 +0200
committerGravatar GitHub <noreply@github.com> 2024-02-21 05:51:28 +0100
commit190204cf1a4f9999e2739d3825967df445d82d7c (patch)
treed1acd3796778b24edfd2677e52ed69a1ca3eae5c /.golangci.yml
parentRemove unnecessary build tag go1.21 (#1721) (diff)
downloadfasthttp-190204cf1a4f9999e2739d3825967df445d82d7c.tar.gz
fasthttp-190204cf1a4f9999e2739d3825967df445d82d7c.tar.bz2
fasthttp-190204cf1a4f9999e2739d3825967df445d82d7c.zip
Upgrade golangci-lint to v1.56.2; fix gocritic issues (#1722)
Diffstat (limited to '.golangci.yml')
-rw-r--r--.golangci.yml18
1 files changed, 16 insertions, 2 deletions
diff --git a/.golangci.yml b/.golangci.yml
index 6d91345..674e3ab 100644
--- a/.golangci.yml
+++ b/.golangci.yml
@@ -69,8 +69,22 @@ linters-settings:
"-ST1000", # at least one file in a package should have a package comment
]
gocritic:
- enabled-checks:
- - emptyStringTest
+ enabled-tags:
+ - diagnostic
+ - experimental
+ - opinionated
+ - performance
+ - style
+ disabled-checks:
+ - deferInLoop
+ - httpNoBody
+ - importShadow
+ - initClause
+ - paramTypeCombine
+ - sloppyReassign
+ - typeUnparen
+ - unnamedResult
+ - whyNoLint
issues:
# Show all issues from a linter.