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