diff --git a/.github/linters/.golangci.yml b/.github/linters/.golangci.yml new file mode 100644 index 0000000..2f30da2 --- /dev/null +++ b/.github/linters/.golangci.yml @@ -0,0 +1,22 @@ +# .golangci.yml +linters: + enable: + - govet + - errcheck + - staticcheck + - unused + - gofmt + - goimports + disable: + - goanalysis_metalinter + +issues: + exclude-rules: + - path: "github.com/prometheus/client_golang/api" + text: "no export data for" + linters: + - goanalysis_metalinter + + # General exclude patterns can also be defined + exclude: + - "could not load export data: no export data for" diff --git a/.github/linters/.lintconfig.yml b/.github/linters/.lintconfig.yml new file mode 100644 index 0000000..d144854 --- /dev/null +++ b/.github/linters/.lintconfig.yml @@ -0,0 +1,4 @@ +# lintconfig.yml +exclude: + - '**/templates/*.txt' + - '**/minio/templates/_helper_*.txt' diff --git a/.github/linters/.shellcheckrc b/.github/linters/.shellcheckrc index 9dbb6fd..ecdcc71 100644 --- a/.github/linters/.shellcheckrc +++ b/.github/linters/.shellcheckrc @@ -1,5 +1 @@ -disable=SC1054 -disable=SC1072 -disable=SC1073 -disable=SC1074 -disable=SC1083 \ No newline at end of file +disable=SC1054,SC1056,SC1072,SC1073,SC1074,SC1083