Skip to content

Commit d6bb3db

Browse files
renovate[bot]phm07
andauthored
deps: update dependency github:golangci/golangci-lint to v2.12.2 (#1400)
This PR contains the following updates: | Package | Update | Change | |---|---|---| | [github:golangci/golangci-lint](https://redirect.github.com/golangci/golangci-lint) | minor | `2.11.4` → `2.12.2` | --- ### Release Notes <details> <summary>golangci/golangci-lint (github:golangci/golangci-lint)</summary> ### [`v2.12.2`](https://redirect.github.com/golangci/golangci-lint/blob/HEAD/CHANGELOG.md#v2122) [Compare Source](https://redirect.github.com/golangci/golangci-lint/compare/v2.12.1...v2.12.2) *Released on 2026-05-06* 1. Linters bug fixes - `gomodguard_v2`: fix blocked configuration - `gomodguard_v2`: from 2.1.0 to 2.1.3 - `iface`: from 1.4.1 to 1.4.2 ### [`v2.12.1`](https://redirect.github.com/golangci/golangci-lint/blob/HEAD/CHANGELOG.md#v2121) [Compare Source](https://redirect.github.com/golangci/golangci-lint/compare/v2.12.0...v2.12.1) *Released on 2026-05-01* 1. Linters bug fixes - `gomodguard_v2`: fix panic with migration suggestion 2. Misc. - fix `install.sh` script (if you are still using an URL based on the branch `master`, please update to use `https://golangci-lint.run/install.sh`) ### [`v2.12.0`](https://redirect.github.com/golangci/golangci-lint/blob/HEAD/CHANGELOG.md#v2120) [Compare Source](https://redirect.github.com/golangci/golangci-lint/compare/v2.11.4...v2.12.0) *Released on 2026-05-01* 1. New linters - Add `clickhouselint` linter <https://github.com/ClickHouse/clickhouse-go-linter> 2. Linters new features or changes - `dupl`: from [`f665c8d`](https://redirect.github.com/golangci/golangci-lint/commit/f665c8d69b32) to [`c99c5cf`](https://redirect.github.com/golangci/golangci-lint/commit/c99c5cf5c202) (extended detection) - `funcorder`: from 0.5.0 to 0.6.0 (new option: `function`) - `goconst`: add an option to ignore strings from tests - `goconst`: from 1.8.2 to 1.10.0 (extended detection) - `gomodguard_v2`: from 1.4.1 to 2.1.0 (major version with new configuration) - `gosec`: from [`619ce21`](https://redirect.github.com/golangci/golangci-lint/commit/619ce2117e08) to 2.26.1 (new checks: `G124`, `G708`, `G709`, `G710`) - `govet`: add `inline` analyzer - `makezero`: from 2.1.0 to 2.2.1 (support slice type aliases) - `paralleltest`: expose `checkcleanup` option - `sloglint`: from 0.11.1 to 0.12.0 (new options: `allowed-keys`, `custom-funcs`) - `wsl_v5`: from 5.6.0 to 5.8.0 (new option: `cuddle-max-statements`; new checks: `after-decl`, `after-defer`, `after-expr`, `after-go`, `cuddle-group`) 3. Linters bug fixes - `forbidigo`: from 2.3.0 to 2.3.1 - `godot`: from 1.5.4 to 1.5.6 - `govet-modernize`: from 0.43.0 to 0.44.0 - `ireturn`: from 0.4.0 to 0.4.1 - `rowserrcheck`: from 1.1.1 to [`c5f79b8`](https://redirect.github.com/golangci/golangci-lint/commit/c5f79b8) 4. Misc. - Decrease cache entropy - Embed the JSON schema in the binary - Filter env vars when cloning the repository with the `custom` command </details> --- ### Configuration 📅 **Schedule**: (UTC) - Branch creation - At any time (no schedule defined) - 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. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/hetznercloud/cli). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4xNTkuMiIsInVwZGF0ZWRJblZlciI6IjQzLjE1OS4yIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119--> --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: phm07 <22707808+phm07@users.noreply.github.com>
1 parent fbfa512 commit d6bb3db

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

.golangci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ linters:
1818
- gochecksumtype
1919
- gocritic
2020
- gomoddirectives
21-
- gomodguard
21+
- gomodguard_v2
2222
- gosec
2323
- gosmopolitan
2424
- loggercheck

internal/cmd/output/output.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ func (o *Table[T]) MarkFieldAsDeprecated(field string, message string) *Table[T]
225225
// AddAllowedFields reads all first level fieldnames of the struct and allows them to be used.
226226
func (o *Table[T]) AddAllowedFields(obj T) *Table[T] {
227227
v := reflect.ValueOf(obj)
228-
if v.Kind() == reflect.Ptr {
228+
if v.Kind() == reflect.Pointer {
229229
v = v.Elem()
230230
}
231231
if v.Kind() != reflect.Struct {

internal/cmd/util/util.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ func IsNil(v any) bool {
246246
}
247247
val := reflect.ValueOf(v)
248248
switch val.Kind() {
249-
case reflect.Chan, reflect.Func, reflect.Interface, reflect.Map, reflect.Ptr, reflect.Slice:
249+
case reflect.Chan, reflect.Func, reflect.Interface, reflect.Map, reflect.Pointer, reflect.Slice:
250250
return val.IsNil()
251251
default:
252252
return false

mise.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[tools]
22
go = "1.26.2"
33
"go:go.uber.org/mock/mockgen" = "v0.6.0"
4-
"github:golangci/golangci-lint" = "2.11.4"
4+
"github:golangci/golangci-lint" = "2.12.2"
55
"github:goreleaser/goreleaser" = "v2.15.4"
66
"github:anchore/quill" = "v0.7.1"
77
"github:jstemmer/go-junit-report" = "v2.1.0"

0 commit comments

Comments
 (0)