From c417edb49d74bbea5082b8d35de4ea17685aeacd Mon Sep 17 00:00:00 2001 From: Mateus Oliveira Date: Tue, 14 May 2024 17:31:09 -0300 Subject: [PATCH] fix: comment space linter Signed-off-by: Mateus Oliveira --- .golangci.yml | 1 + .../testdata/project/.golangci.yml | 6 ++++++ .../src/cronjob-tutorial/testdata/project/.golangci.yml | 6 ++++++ .../book/src/getting-started/testdata/project/.golangci.yml | 6 ++++++ .../golang/v4/scaffolds/internal/templates/golangci.go | 6 ++++++ .../project-v4-multigroup-with-deploy-image/.golangci.yml | 6 ++++++ testdata/project-v4-multigroup/.golangci.yml | 6 ++++++ testdata/project-v4-with-deploy-image/.golangci.yml | 6 ++++++ testdata/project-v4-with-grafana/.golangci.yml | 6 ++++++ testdata/project-v4/.golangci.yml | 6 ++++++ 10 files changed, 55 insertions(+) diff --git a/.golangci.yml b/.golangci.yml index db63cd4588d..d8b39e0dba5 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -61,6 +61,7 @@ linters-settings: # - name: bool-literal-in-expr - name: constant-logical-expr + - name: comment-spacings linters: disable-all: true diff --git a/docs/book/src/component-config-tutorial/testdata/project/.golangci.yml b/docs/book/src/component-config-tutorial/testdata/project/.golangci.yml index ca69a11f6fd..cb79d420591 100644 --- a/docs/book/src/component-config-tutorial/testdata/project/.golangci.yml +++ b/docs/book/src/component-config-tutorial/testdata/project/.golangci.yml @@ -33,8 +33,14 @@ linters: - misspell - nakedret - prealloc + - revive - staticcheck - typecheck - unconvert - unparam - unused + +linters-settings: + revive: + rules: + - name: comment-spacings diff --git a/docs/book/src/cronjob-tutorial/testdata/project/.golangci.yml b/docs/book/src/cronjob-tutorial/testdata/project/.golangci.yml index ca69a11f6fd..cb79d420591 100644 --- a/docs/book/src/cronjob-tutorial/testdata/project/.golangci.yml +++ b/docs/book/src/cronjob-tutorial/testdata/project/.golangci.yml @@ -33,8 +33,14 @@ linters: - misspell - nakedret - prealloc + - revive - staticcheck - typecheck - unconvert - unparam - unused + +linters-settings: + revive: + rules: + - name: comment-spacings diff --git a/docs/book/src/getting-started/testdata/project/.golangci.yml b/docs/book/src/getting-started/testdata/project/.golangci.yml index ca69a11f6fd..cb79d420591 100644 --- a/docs/book/src/getting-started/testdata/project/.golangci.yml +++ b/docs/book/src/getting-started/testdata/project/.golangci.yml @@ -33,8 +33,14 @@ linters: - misspell - nakedret - prealloc + - revive - staticcheck - typecheck - unconvert - unparam - unused + +linters-settings: + revive: + rules: + - name: comment-spacings diff --git a/pkg/plugins/golang/v4/scaffolds/internal/templates/golangci.go b/pkg/plugins/golang/v4/scaffolds/internal/templates/golangci.go index 76964218063..6bd86243636 100644 --- a/pkg/plugins/golang/v4/scaffolds/internal/templates/golangci.go +++ b/pkg/plugins/golang/v4/scaffolds/internal/templates/golangci.go @@ -77,9 +77,15 @@ linters: - misspell - nakedret - prealloc + - revive - staticcheck - typecheck - unconvert - unparam - unused + +linters-settings: + revive: + rules: + - name: comment-spacings ` diff --git a/testdata/project-v4-multigroup-with-deploy-image/.golangci.yml b/testdata/project-v4-multigroup-with-deploy-image/.golangci.yml index ca69a11f6fd..cb79d420591 100644 --- a/testdata/project-v4-multigroup-with-deploy-image/.golangci.yml +++ b/testdata/project-v4-multigroup-with-deploy-image/.golangci.yml @@ -33,8 +33,14 @@ linters: - misspell - nakedret - prealloc + - revive - staticcheck - typecheck - unconvert - unparam - unused + +linters-settings: + revive: + rules: + - name: comment-spacings diff --git a/testdata/project-v4-multigroup/.golangci.yml b/testdata/project-v4-multigroup/.golangci.yml index ca69a11f6fd..cb79d420591 100644 --- a/testdata/project-v4-multigroup/.golangci.yml +++ b/testdata/project-v4-multigroup/.golangci.yml @@ -33,8 +33,14 @@ linters: - misspell - nakedret - prealloc + - revive - staticcheck - typecheck - unconvert - unparam - unused + +linters-settings: + revive: + rules: + - name: comment-spacings diff --git a/testdata/project-v4-with-deploy-image/.golangci.yml b/testdata/project-v4-with-deploy-image/.golangci.yml index ca69a11f6fd..cb79d420591 100644 --- a/testdata/project-v4-with-deploy-image/.golangci.yml +++ b/testdata/project-v4-with-deploy-image/.golangci.yml @@ -33,8 +33,14 @@ linters: - misspell - nakedret - prealloc + - revive - staticcheck - typecheck - unconvert - unparam - unused + +linters-settings: + revive: + rules: + - name: comment-spacings diff --git a/testdata/project-v4-with-grafana/.golangci.yml b/testdata/project-v4-with-grafana/.golangci.yml index ca69a11f6fd..cb79d420591 100644 --- a/testdata/project-v4-with-grafana/.golangci.yml +++ b/testdata/project-v4-with-grafana/.golangci.yml @@ -33,8 +33,14 @@ linters: - misspell - nakedret - prealloc + - revive - staticcheck - typecheck - unconvert - unparam - unused + +linters-settings: + revive: + rules: + - name: comment-spacings diff --git a/testdata/project-v4/.golangci.yml b/testdata/project-v4/.golangci.yml index ca69a11f6fd..cb79d420591 100644 --- a/testdata/project-v4/.golangci.yml +++ b/testdata/project-v4/.golangci.yml @@ -33,8 +33,14 @@ linters: - misspell - nakedret - prealloc + - revive - staticcheck - typecheck - unconvert - unparam - unused + +linters-settings: + revive: + rules: + - name: comment-spacings