From 3234efac478fc294f31309a9092e4cc60143c2a0 Mon Sep 17 00:00:00 2001 From: Andreas Fritzler Date: Thu, 10 Oct 2024 10:24:40 +0200 Subject: [PATCH] Update golangci-lint configuration --- .golangci.yaml | 20 -------------------- .golangci.yml | 41 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 41 insertions(+), 20 deletions(-) delete mode 100644 .golangci.yaml create mode 100644 .golangci.yml diff --git a/.golangci.yaml b/.golangci.yaml deleted file mode 100644 index d8d613d..0000000 --- a/.golangci.yaml +++ /dev/null @@ -1,20 +0,0 @@ -run: - timeout: 3m - -linters: - enable: - - revive - - ineffassign - - misspell - - goimports - - ginkgolinter - -severity: - default-severity: error - -linters-settings: - revive: - severity: error - rules: - - name: if-return - disabled: true diff --git a/.golangci.yml b/.golangci.yml new file mode 100644 index 0000000..e6c5b64 --- /dev/null +++ b/.golangci.yml @@ -0,0 +1,41 @@ +run: + timeout: 3m + allow-parallel-runners: true + +issues: + # don't skip warning about doc comments + # don't exclude the default set of lint + exclude-use-default: false + # restore some of the defaults + # (fill in the rest as needed) + exclude-rules: + - path: "cmd/*" + linters: + - lll + - path: "docker/*" + linters: + - dupl + - lll +linters: + disable-all: true + enable: + - copyloopvar + - dupl + - errcheck + - goconst + - gocyclo + - gofmt + - goimports + - gosimple + - govet + - ineffassign + - ginkgolinter + - lll + - misspell + - nakedret + - prealloc + - staticcheck + - typecheck + - unconvert + - unparam + - unused \ No newline at end of file