Skip to content

Commit

Permalink
Add linting rules (#2)
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Moore <mattmoor@chainguard.dev>
  • Loading branch information
mattmoor authored Jan 21, 2024
1 parent 881b1d6 commit e2c72e2
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 e2c72e2

Please sign in to comment.