Skip to content

Commit

Permalink
Add linting rules
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Moore <[email protected]>
  • Loading branch information
mattmoor committed Jan 21, 2024
1 parent 881b1d6 commit f00d9eb
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
linters:
enable:
- asciicheck
- unused
- errcheck
- errorlint
- gofmt
- goimports
- gosec
- gocritic
- importas
- prealloc
- revive
- misspell
- stylecheck
- tparallel
- unconvert
- unparam
- whitespace
output:
uniq-by-line: false
issues:
exclude-rules:
- path: _test\.go
linters:
- errcheck
- gosec
max-issues-per-linter: 0
max-same-issues: 0
linters-settings:
revive:
rules:
- name: dot-imports
disabled: true
run:
issues-exit-code: 1
timeout: 10m

0 comments on commit f00d9eb

Please sign in to comment.