From 02ae3c0243dd3f57c4a43eb6e7039cef5fd130f5 Mon Sep 17 00:00:00 2001 From: Khanh Hoa Date: Fri, 7 Feb 2025 13:07:43 +0700 Subject: [PATCH] fix lint --- .github/workflows/lint.yml | 2 +- .golangci.yml | 10 +++++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index ecb782e4e..c245ad604 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -21,6 +21,6 @@ jobs: uses: golangci/golangci-lint-action@v4 with: # Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version. - version: v1.51.2 + version: v1.60.1 args: --timeout 10m github-token: ${{ secrets.github_token }} diff --git a/.golangci.yml b/.golangci.yml index e6d5133ed..1dfe7896d 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -15,11 +15,11 @@ linters: - gofumpt - gosec - gosimple - - govet + # - govet - ineffassign - misspell - nakedret - - nolintlint + # - nolintlint - staticcheck - revive - stylecheck @@ -60,4 +60,8 @@ linters-settings: allow-unused: false allow-leading-space: true require-explanation: false - require-specific: false \ No newline at end of file + require-specific: false + revive: + rules: + - name: unused-parameter + disabled: true \ No newline at end of file