From 2a578d767f01af839c2e91fdeeb3bbb4caed4ae4 Mon Sep 17 00:00:00 2001 From: Matthieu MOREL Date: Fri, 10 Dec 2021 10:44:11 +0100 Subject: [PATCH] Use Golangci configuration file (#4896) --- .github/workflows/reviewdog.yml | 2 -- .golangci.yml | 11 +++++++++++ 2 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 .golangci.yml diff --git a/.github/workflows/reviewdog.yml b/.github/workflows/reviewdog.yml index abfd57f3..95b6fb04 100644 --- a/.github/workflows/reviewdog.yml +++ b/.github/workflows/reviewdog.yml @@ -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' diff --git a/.golangci.yml b/.golangci.yml new file mode 100644 index 00000000..16903ed6 --- /dev/null +++ b/.golangci.yml @@ -0,0 +1,11 @@ +linters: + enable: + - cyclop + - exportloopref + - gocritic + - gosec + - ineffassign + - misspell + - prealloc + - unconvert + - unparam