forked from mirror/gorm
Use Golangci configuration file (#4896)
This commit is contained in:
parent
e5bdd610c3
commit
2a578d767f
|
@ -9,5 +9,3 @@ jobs:
|
|||
uses: actions/checkout@v2
|
||||
- name: golangci-lint
|
||||
uses: reviewdog/action-golangci-lint@v2
|
||||
with:
|
||||
golangci_lint_flags: '-E cyclop,unconvert,misspell,unparam,ineffassign,gocritic,prealloc,exportloopref,gosec'
|
||||
|
|
|
@ -0,0 +1,11 @@
|
|||
linters:
|
||||
enable:
|
||||
- cyclop
|
||||
- exportloopref
|
||||
- gocritic
|
||||
- gosec
|
||||
- ineffassign
|
||||
- misspell
|
||||
- prealloc
|
||||
- unconvert
|
||||
- unparam
|
Loading…
Reference in New Issue