Skip to content

Commit

Permalink
add golangci config
Browse files Browse the repository at this point in the history
  • Loading branch information
dzyanis committed Mar 17, 2022
1 parent dd09c5f commit 6023394
Showing 1 changed file with 90 additions and 0 deletions.
90 changes: 90 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
run:
modules-download-mode: readonly
issues-exit-code: 0

linters-settings:
exhaustive:
default-signifies-exhaustive: false
gci:
sections:
- standard
- default
- prefix(github.com/messagebird/sachet)
goconst:
min-occurrences: 5
ignore-tests: true
godot:
scope: toplevel
exclude:
- go-sumtype:decl
- check interfaces
capital: true
godox:
keywords:
- BUG
- FIXME
- HACK
goimports:
local-prefixes: github.com/messagebird/sachet
gosimple:
go: "1.18"
checks: ["all"]
lll:
line-length: 130
tab-width: 4
nolintlint:
allow-unused: false
allow-leading-space: false
allow-no-explanation: []
require-explanation: true
require-specific: true
staticcheck:
go: "1.18"
checks: ["all"]
stylecheck:
go: "1.18"
checks: ["all"]
dot-import-whitelist: []
initialisms: []
http-status-code-whitelist: []
unparam:
check-exported: true
unused:
go: "1.18"
whitespace:
multi-if: false
multi-func: false
tagliatelle:

linters:
enable-all: true
disable:
# TODO: enable one by one
- gci
- ireturn
- forbidigo
- containedctx
- tagliatelle
- cyclop
- errcheck
- exhaustivestruct
- forcetypeassert
- funlen
- gochecknoglobals
- gochecknoinits
- goerr113
- gomnd
- gosec
- revive
- varnamelen
- wrapcheck
- noctx
- staticcheck
- stylecheck
- golint
- interfacer
- maligned
- nlreturn
- scopelint
- testpackage
- wsl

0 comments on commit 6023394

Please sign in to comment.