Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 48 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# https://golangci-lint.run/usage/configuration
version: "2"

run:
timeout: 5m
tests: true
concurrency: 4

linters:
enable:
- govet
- errcheck
- staticcheck
- revive
- ineffassign
- unused
- unparam
- misspell
- nakedret
- bodyclose
- gocritic
- makezero
- gosec
settings:
staticcheck:
checks:
- all
- "-QF1008" # Allow embedded structs to be referenced by field
- "-ST1000" # Do not require package comments
revive:
rules:
- name: exported
disabled: true
- name: exported
disabled: true
- name: package-comments
disabled: true

formatters:
enable:
- gofmt
- goimports

output:
formats:
text:
print-linter-name: true
print-issued-lines: true