Skip to content

Commit

Permalink
add config
Browse files Browse the repository at this point in the history
  • Loading branch information
aljo242 committed Nov 9, 2023
1 parent cb4f78b commit 0272da2
Showing 1 changed file with 59 additions and 0 deletions.
59 changes: 59 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
run:
tests: true
timeout: 10m
sort-results: true
allow-parallel-runners: true
concurrency: 4

linters:
disable-all: true
enable:
- dogsled
- exportloopref
- goconst
- gocritic
- gofumpt
- gosec
- gosimple
- govet
- ineffassign
- misspell
- nakedret
- nolintlint
- staticcheck
- revive
- stylecheck
- typecheck
- unconvert
- unused
# - errcheck

issues:
exclude-rules:
- text: "Use of weak random number generator"
linters:
- gosec
# - text: "ST1003:"
# linters:
# - stylecheck
# - text: "ST1016:"
# linters:
# - stylecheck
# - text: "leading space"
# linters:
# - nolintlint

max-issues-per-linter: 10000
max-same-issues: 10000

linters-settings:
dogsled:
max-blank-identifiers: 3
maligned:
# print struct with more effective memory layout or not, false by default
suggest-new: true
nolintlint:
allow-unused: false
allow-leading-space: true
require-explanation: false
require-specific: false

0 comments on commit 0272da2

Please sign in to comment.