Skip to content

Commit

Permalink
add golangci-lint and fix linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
tariq1890 committed Aug 20, 2023
1 parent 902fbf7 commit 66731ce
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
run:
deadline: 10m
linters:
disable-all: true
enable:
- gocritic
- gofmt
- goimports
- gosec
- gosimple
- govet
- ineffassign
- misspell
- staticcheck
- unconvert
linters-settings:
gocritic:
disabled-checks:
- ifElseChain
goimports:
local-prefixes: github.com/container-orchestrated-devices/container-device-interface
gosec:
excludes:
- G306

0 comments on commit 66731ce

Please sign in to comment.