From 70ba7eb479c2fe60ace0622179594461f6410da8 Mon Sep 17 00:00:00 2001 From: CloudQuery Bot <102256036+cq-bot@users.noreply.github.com> Date: Mon, 2 Dec 2024 11:17:33 +0200 Subject: [PATCH] chore(deps): Update dependency golangci/golangci-lint to v1.62.0 (#435) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Update | Change | Pending | |---|---|---|---| | [golangci/golangci-lint](https://togithub.com/golangci/golangci-lint) | minor | `v1.61.0` -> `v1.62.0` | `v1.62.2` | --- ### Release Notes
golangci/golangci-lint (golangci/golangci-lint) ### [`v1.62.0`](https://togithub.com/golangci/golangci-lint/blob/HEAD/CHANGELOG.md#v1620) [Compare Source](https://togithub.com/golangci/golangci-lint/compare/v1.61.0...v1.62.0) 1. New linters - Add `recvcheck` linter https://github.com/raeperd/recvcheck - Add `iface` linter https://github.com/uudashr/iface 2. Updated linters - ⚠️ `execinquery`: deprecation step 2 - ⚠️ `gomnd`: deprecation step 2 (replaced by `mnd`) - `bidichk`: from 0.2.7 to 0.3.2 (important performance improvement) - `canonicalheader`: from 1.1.1 to 1.1.2 - `cyclop`: from 1.2.1 to 1.2.3 - `dupword`: from 0.1.1 to 0.1.3 - `errcheck`: from 1.7.0 to 1.8.0 - `errchkjson`: from 0.3.6 to 0.4.0 - `errname`: from 0.1.13 to 1.0.0 - `ginkgolinter`: from 0.17.0 to 0.18.0 (new option: `force-succeed`) - `go-check-sumtype`: from 0.1.4 to 0.2.0 (new option: `default-signifies-exhaustive`) - `go-critic`: from 0.11.4 to 0.11.5 - `go-printf-func-name`: from [`7558a9e`](https://togithub.com/golangci/golangci-lint/commit/7558a9eaa5af) to v0.1.0 - `godot`: from 1.4.17 to 1.4.18 - `gosec`: from 2.21.2 to 2.21.4 - `intrange`: from 0.2.0 to 0.2.1 - `loggercheck`: from 0.9.4 to 0.10.1 (`log/slog` support) - `musttag`: from 0.12.2 to 0.13.0 - `nakedret`: from 2.0.4 to 2.0.5 - `nilnil`: from 0.1.9 to 1.0.0 (new option: `detect-opposite`) - `noctx`: from 0.0.2 to 0.1.0 - `protogetter`: from 0.3.6 to 0.3.8 - `revive`: from 1.3.9 to 1.5.0 (new rules: `filename-format`, and `file-length-limit`) - `tenv`: from 1.10.0 to 1.12.1 (handle dot import) - `testifylint`: from 1.4.3 to 1.5.0 (new checkers: `contains`, `encoded-compare`, `regexp`) 3. Misc. - Type sizing when cross-compiling (32-bit). - code-climate: add check_name field - Improve Go version detection - Fix Go version propagation 4. Documentation - Adds a section about `exclude-dirs-use-default` - Improve 'install from sources' section - Improve FAQ about Go versions - Improve linter/rule/check docs - Improve new linter section - Improve `forbidigo` pattern examples for built-in functions
--- ### Configuration 📅 **Schedule**: Branch creation - "before 4am on the first day of the month" (UTC), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://togithub.com/renovatebot/renovate). --- .github/workflows/lint_golang.yml | 2 +- managedplugin/log_reader_test.go | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/lint_golang.yml b/.github/workflows/lint_golang.yml index 8537496..56afc5c 100644 --- a/.github/workflows/lint_golang.yml +++ b/.github/workflows/lint_golang.yml @@ -31,5 +31,5 @@ jobs: - name: golangci-lint uses: golangci/golangci-lint-action@v6 with: - version: v1.61.0 + version: v1.62.0 args: --verbose diff --git a/managedplugin/log_reader_test.go b/managedplugin/log_reader_test.go index 8c23ad7..954258b 100644 --- a/managedplugin/log_reader_test.go +++ b/managedplugin/log_reader_test.go @@ -9,9 +9,9 @@ import ( "github.com/google/go-cmp/cmp" ) -func longStr(len int) string { - b := make([]byte, len) - for i := 0; i < len; i++ { +func longStr(length int) string { + b := make([]byte, length) + for i := 0; i < length; i++ { b[i] = byte(65 + (i % 26)) // cycle through letters A to Z } return string(b)