aboutsummaryrefslogtreecommitdiff
path: root/.golangci.yml
diff options
context:
space:
mode:
authorGravatar Oleksandr Redko <Oleksandr_Redko@epam.com> 2023-11-09 17:30:33 +0200
committerGravatar GitHub <noreply@github.com> 2023-11-09 16:30:33 +0100
commit1242d8af15afca2e1201b7d0e0980c485599550f (patch)
tree6409e20f3dfd3af17685ae96fe5234defd9baf5f /.golangci.yml
parentchore: Remove redundant build constraint (#1650) (diff)
downloadfasthttp-1242d8af15afca2e1201b7d0e0980c485599550f.tar.gz
fasthttp-1242d8af15afca2e1201b7d0e0980c485599550f.tar.bz2
fasthttp-1242d8af15afca2e1201b7d0e0980c485599550f.zip
chore: add golangci-lint config file for flexibility (#1649)
* chore: add golangci-lint config file for flexibility https://golangci-lint.run/usage/configuration/#config-file * chore: add golangci-lint config file for flexibility
Diffstat (limited to '.golangci.yml')
-rw-r--r--.golangci.yml72
1 files changed, 72 insertions, 0 deletions
diff --git a/.golangci.yml b/.golangci.yml
new file mode 100644
index 0000000..483c67a
--- /dev/null
+++ b/.golangci.yml
@@ -0,0 +1,72 @@
+# This file contains configuration options for golangci-lint.
+# https://github.com/golangci/golangci-lint/blob/master/.golangci.reference.yml
+
+run:
+ # Timeout for analysis.
+ timeout: 5m
+
+linters:
+ enable-all: true
+ disable:
+ - cyclop
+ - depguard
+ - dupl
+ - dupword
+ - errname
+ - errorlint
+ - exhaustive
+ - exhaustruct
+ - forcetypeassert
+ - funlen
+ - gochecknoglobals
+ - gocognit
+ - goconst
+ - gocyclo
+ - godot
+ - goerr113
+ - gomnd
+ - gosec
+ - inamedparam
+ - ireturn
+ - lll
+ - maintidx
+ - nakedret
+ - nestif
+ - nlreturn
+ - noctx
+ - nonamedreturns
+ - paralleltest
+ - perfsprint
+ - revive
+ - stylecheck
+ - testableexamples
+ - testpackage
+ - thelper
+ - tparallel
+ - unconvert
+ - unparam
+ - usestdlibvars
+ - varnamelen
+ - wastedassign
+ - whitespace
+ - wrapcheck
+ - wsl
+
+ # Deprecated linters
+ - deadcode
+ - exhaustivestruct
+ - golint
+ - ifshort
+ - interfacer
+ - maligned
+ - nosnakecase
+ - scopelint
+ - structcheck
+ - varcheck
+
+linters-settings:
+ # Show all issues from a linter.
+ max-issues-per-linter: 0
+
+ # Show all issues with the same text.
+ max-same-issues: 0