From 3c296de5c8c1d7c3e97d6dbc926dc322df4ab6d8 Mon Sep 17 00:00:00 2001 From: vchinda Date: Wed, 10 Jul 2024 14:26:06 +0530 Subject: [PATCH] added lint Signed-off-by: GW Cloud Common Services --- .github/workflows/go.yaml | 34 +++++++++++++++++----------------- pkg/backup/sls/producer.go | 2 +- 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/.github/workflows/go.yaml b/.github/workflows/go.yaml index b23ab13..d1591db 100644 --- a/.github/workflows/go.yaml +++ b/.github/workflows/go.yaml @@ -18,24 +18,24 @@ env: jobs: - detect-noop: - runs-on: ubuntu-20.04 - outputs: - noop: ${{ steps.noop.outputs.should_skip }} - steps: - - name: Detect No-op Changes - id: noop - uses: fkirc/skip-duplicate-actions@v5.3.0 - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - paths_ignore: '["**.md", "**.mdx", "**.png", "**.jpg"]' - do_not_skip: '["workflow_dispatch", "schedule", "push"]' - concurrent_skipping: false + # detect-noop: + # runs-on: ubuntu-20.04 + # outputs: + # noop: ${{ steps.noop.outputs.should_skip }} + # steps: + # - name: Detect No-op Changes + # id: noop + # uses: fkirc/skip-duplicate-actions@v5.3.0 + # with: + # # github_token: ${{ secrets.GITHUB_TOKEN }} + # paths_ignore: '["**.md", "**.mdx", "**.png", "**.jpg"]' + # do_not_skip: '["workflow_dispatch", "schedule", "push"]' + # concurrent_skipping: false staticcheck: runs-on: ubuntu-20.04 - needs: detect-noop - if: needs.detect-noop.outputs.noop != 'true' + # needs: detect-noop + # if: needs.detect-noop.outputs.noop != 'true' steps: - name: Setup Go @@ -63,8 +63,8 @@ jobs: lint: runs-on: ubuntu-20.04 - needs: detect-noop - if: needs.detect-noop.outputs.noop != 'true' + # needs: detect-noop + # if: needs.detect-noop.outputs.noop != 'true' steps: - name: Setup Go diff --git a/pkg/backup/sls/producer.go b/pkg/backup/sls/producer.go index a170617..6b676b0 100644 --- a/pkg/backup/sls/producer.go +++ b/pkg/backup/sls/producer.go @@ -51,7 +51,7 @@ func (callback *Callback) Fail(result *producer.Result) { } // Success is success callback -func (callback *Callback) Success(result *producer.Result) { //nolint:golint,unused +func (callback *Callback) Success(result *producer.Result) { //nolint:revive,unused,govet,golint } // Store is store workflowRun to sls