From a7090bd833a8b6619ec8bc702fe133ce2bad7fa5 Mon Sep 17 00:00:00 2001 From: somaz Date: Mon, 24 Jun 2024 14:44:26 +0900 Subject: [PATCH] fix: exclud lint --- .github/linters/.golangci.yml | 22 ++++++++++++++++++++++ .github/linters/.lintconfig.yml | 4 ++++ .github/linters/.shellcheckrc | 6 +----- 3 files changed, 27 insertions(+), 5 deletions(-) create mode 100644 .github/linters/.golangci.yml create mode 100644 .github/linters/.lintconfig.yml 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