From 80dc09da065f87fb5bc740dd820d687cc0942a38 Mon Sep 17 00:00:00 2001 From: Nodar Date: Mon, 28 Aug 2023 17:54:25 +0200 Subject: [PATCH 1/3] Enable custom linters (koanf/pointercheck) in CI --- .github/workflows/ci.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d2f5765d72..5b0b33848c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -129,6 +129,10 @@ jobs: version: latest skip-go-installation: true skip-pkg-cache: true + - name: Custom Lint + run: | + go run linter/koanf/koanf.go linter/koanf/handlers.go ./... + go run linter/pointercheck/pointer.go ./... - name: Set environment variables run: | From 10af61eb84e7d4e9eaa263794c53c0f14da09fc2 Mon Sep 17 00:00:00 2001 From: Nodar Date: Mon, 28 Aug 2023 17:55:35 +0200 Subject: [PATCH 2/3] Fix whitespace in ci.yml --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5b0b33848c..916969f324 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -132,7 +132,7 @@ jobs: - name: Custom Lint run: | go run linter/koanf/koanf.go linter/koanf/handlers.go ./... - go run linter/pointercheck/pointer.go ./... + go run linter/pointercheck/pointer.go ./... - name: Set environment variables run: | From 293ed4c504e3370acb0984cac36db02dd1e82275 Mon Sep 17 00:00:00 2001 From: Nodar Date: Fri, 1 Sep 2023 17:14:06 +0200 Subject: [PATCH 3/3] Specify folders of linters instead of separate go files in CI yml --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 916969f324..a0f5251f9f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -131,8 +131,8 @@ jobs: skip-pkg-cache: true - name: Custom Lint run: | - go run linter/koanf/koanf.go linter/koanf/handlers.go ./... - go run linter/pointercheck/pointer.go ./... + go run ./linter/koanf ./... + go run ./linter/pointercheck ./... - name: Set environment variables run: |