From 598079ad64f7ec14705a5e8478968df9f81b2872 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20=C5=BBak?= Date: Thu, 5 Dec 2024 15:31:11 +0100 Subject: [PATCH] chore(deps): Bump golangci-lint from v1.62.0 to v1.62.2 (#16250) --- .circleci/config.yml | 6 +++--- .golangci.yml | 9 ++++----- Makefile | 2 +- 3 files changed, 8 insertions(+), 9 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 9ba7e9c4f..20568a9c4 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -106,7 +106,7 @@ jobs: - run: 'make check-deps' - run: name: "Install golangci-lint" - command: go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.62.0 + command: go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.62.2 - run: name: "golangci-lint/Linux" # There are only 4 vCPUs available for this executor, so use only 4 instead of the default number @@ -120,7 +120,7 @@ jobs: - check-changed-files-or-halt - run: name: "Install golangci-lint" - command: go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.62.0 + command: go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.62.2 - run: name: "golangci-lint/macOS" # There are only 4 vCPUs available for this executor, so use only 4 instead of the default number @@ -134,7 +134,7 @@ jobs: - check-changed-files-or-halt - run: name: "Install golangci-lint" - command: go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.62.0 + command: go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.62.2 - run: name: "golangci-lint/Windows" # There are only 4 vCPUs available for this executor, so use only 4 instead of the default number diff --git a/.golangci.yml b/.golangci.yml index 982191777..a7eab4390 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -284,10 +284,9 @@ linters-settings: - name: import-shadowing - name: increment-decrement - name: indent-error-flow -# Enable again when https://github.com/mgechev/revive/issues/1103 is fixed -# - name: max-public-structs -# exclude: [ "TEST" ] -# arguments: [ 5 ] + - name: max-public-structs + exclude: [ "TEST" ] + arguments: [ 5 ] - name: modifies-parameter - name: modifies-value-receiver - name: optimize-operands-order @@ -392,7 +391,7 @@ issues: text: "Use of weak random number generator" #gosec:G404 - path-except: ^plugins/(aggregators|inputs|outputs|parsers|processors|serializers)/... - text: "max-public-structs: you have exceeded the maximum number of public struct declarations" #revive:max-public-structs + text: "max-public-structs: you have exceeded the maximum number" #revive:max-public-structs # Independently of option `exclude` we use default exclude patterns, # it can be disabled by this option. diff --git a/Makefile b/Makefile index 543bd9ae2..71ac0a668 100644 --- a/Makefile +++ b/Makefile @@ -180,7 +180,7 @@ vet: .PHONY: lint-install lint-install: @echo "Installing golangci-lint" - go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.62.0 + go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.62.2 @echo "Installing markdownlint" npm install -g markdownlint-cli