Skip to content

Commit

Permalink
Create commmon golangci-lint config
Browse files Browse the repository at this point in the history
  • Loading branch information
walldiss committed Jun 7, 2024
1 parent 1b388dc commit 0dbc476
Showing 1 changed file with 66 additions and 0 deletions.
66 changes: 66 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
run:
timeout: 5m

linters:
enable:
- bidichk
- bodyclose
- dogsled
- dupl
- errcheck
- errorlint
- exportloopref
- gocheckcompilerdirectives
- goconst
- gocritic
- gofmt
- gofumpt
- goimports
- revive
- gosec
- gosimple
- govet
- ineffassign
- lll
- loggercheck
- misspell
- nakedret
- nilerr
- nilnil
- nolintlint
- prealloc
- protogetter
- exportloopref
- staticcheck
- stylecheck
- typecheck
- unconvert
- unused
- wastedassign
- whitespace
- nolintlint
- asciicheck
- dupword

issues:
exclude-rules:
- path: _test\.go
linters:
- gosec
- revive
- linters:
- lll
source: "https://"
max-same-issues: 50

linters-settings:
dogsled:
max-blank-identifiers: 3
misspell:
locale: US
goimports:
local-prefixes: github.com/celestiaorg/<past_repo_name_here>
dupl:
threshold: 200
gofumpt:
extra-rules: true

0 comments on commit 0dbc476

Please sign in to comment.