Use Golangci configuration file (#4896)

This commit is contained in:
Matthieu MOREL 2021-12-10 10:44:11 +01:00 committed by GitHub
parent e5bdd610c3
commit 2a578d767f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 2 deletions

View File

@ -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'

11
.golangci.yml Normal file
View File

@ -0,0 +1,11 @@
linters:
enable:
- cyclop
- exportloopref
- gocritic
- gosec
- ineffassign
- misspell
- prealloc
- unconvert
- unparam