From 3b279f3197826bffdc7ef04f1e8ff6823cf87c81 Mon Sep 17 00:00:00 2001 From: Ruslan Bayandinov Date: Tue, 21 Feb 2023 14:09:10 +0000 Subject: [PATCH] fix linter Signed-off-by: Ruslan Bayandinov --- .github/workflows/ci.yaml | 2 +- .github/workflows/release.yml | 2 +- .golangci.yml | 10 +++++----- .yamllint.yml | 1 - 4 files changed, 7 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 38968dc..f5b8f04 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -18,7 +18,7 @@ jobs: golangci-lint: uses: networkservicemesh/.github/.github/workflows/golangci-lint.yaml@main with: - linter-version: v1.45.2 + linter-version: v1.51.1 excludeFmtErrorf: uses: networkservicemesh/.github/.github/workflows/exclude-fmt-errorf.yaml@main diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3cf4ae8..aa1b36b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -18,7 +18,7 @@ jobs: - name: Get tag run: | branch=${{github.event.workflow_run.head_branch}} - echo 'tag=${branch#release/}' >> $GITHUB_OUTPUT + echo tag=${branch#release/} >> $GITHUB_OUTPUT id: get-tag-step check-gomod-deps: diff --git a/.golangci.yml b/.golangci.yml index 14d527c..5836bfd 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -1,7 +1,7 @@ --- run: # concurrency: 6 - go: "1.17" + go: "1.19" timeout: 2m issues-exit-code: 1 tests: true @@ -167,7 +167,7 @@ issues: max-issues-per-linter: 0 max-same-issues: 0 exclude-rules: - - path: main.go - text: "should have a package comment" - linters: - - revive + - path: main.go + text: "should have a package comment" + linters: + - revive diff --git a/.yamllint.yml b/.yamllint.yml index 4914fed..d4a3b49 100644 --- a/.yamllint.yml +++ b/.yamllint.yml @@ -9,7 +9,6 @@ rules: truthy: disable # 80 chars should be enough, but don't fail if a line is longer line-length: disable - indentation: disable comments-indentation: ignore: .circleci/config.yml