diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1f8f95c..a75c279 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -39,7 +39,7 @@ jobs: with: go-version: "1.24" - name: golangci-lint - uses: golangci/golangci-lint-action@2e788936b09dd82dc280e845628a40d2ba6b204c # v6.3.1 + uses: golangci/golangci-lint-action@4696ba8babb6127d732c3c6dde519db15edab9ea # v6.5.1 with: version: v1.64.7 skip-cache: true diff --git a/.golangci.yaml b/.golangci.yaml index c8343b6..25d7acf 100644 --- a/.golangci.yaml +++ b/.golangci.yaml @@ -98,7 +98,7 @@ linters-settings: # Default: true skipRecvDeref: false - gomnd: + mnd: # List of function patterns to exclude from analysis. # Values always ignored: `time.Date`, # `strconv.FormatInt`, `strconv.FormatUint`, `strconv.FormatFloat`, @@ -143,7 +143,7 @@ linters-settings: nolintlint: # Exclude following linters from requiring an explanation. # Default: [] - allow-no-explanation: [ funlen, gocognit, lll ] + allow-no-explanation: [funlen, gocognit, lll] # Enable to require an explanation of nonzero length after each nolint directive. # Default: false require-explanation: true @@ -172,7 +172,6 @@ linters-settings: nestif: min-complexity: 8 - linters: disable-all: true enable: @@ -283,9 +282,9 @@ issues: exclude-rules: - source: "(noinspection|TODO)" - linters: [ godot ] + linters: [godot] - source: "//noinspection" - linters: [ gocritic ] + linters: [gocritic] - path: "_test\\.go" linters: - bodyclose