mirror of
https://github.com/valyala/fasthttp.git
synced 2026-06-14 15:56:44 +03:00
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
This commit is contained in:
@@ -16,5 +16,5 @@ jobs:
|
||||
- name: Run golangci-lint
|
||||
uses: golangci/golangci-lint-action@v3
|
||||
with:
|
||||
version: v1.54.2
|
||||
args: --enable=nolintlint,gochecknoinits,bodyclose,gofumpt,gocritic --verbose
|
||||
version: v1.55.2
|
||||
args: --verbose
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user