From 56e113b30e2c15a0cdc32007868cd39729014dd9 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 17 Feb 2026 16:48:59 +0000 Subject: [PATCH 1/3] deps: update pre-commit hook golangci/golangci-lint --- .gitlab-ci.yml | 2 +- .pre-commit-config.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 1c36d99c0..8b02aa6ea 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -25,7 +25,7 @@ build: test:lint: stage: test - image: golangci/golangci-lint:v2.8 + image: golangci/golangci-lint:v2.10 variables: GOLANGCI_LINT_CACHE: $CI_PROJECT_DIR/.cache/golangci-lint cache: diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 11019beb0..409332ef3 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -82,7 +82,7 @@ repos: - id: shellcheck - repo: https://github.com/golangci/golangci-lint - rev: v2.8.0 + rev: v2.10.1 hooks: - id: golangci-lint-full language_version: 1.25.7 # renovate: datasource=golang-version depName=go From a25485564cb71215fc5acc35e95a9bd22bec615c Mon Sep 17 00:00:00 2001 From: lukasmetzner Date: Wed, 18 Feb 2026 07:23:16 +0100 Subject: [PATCH 2/3] ci: update linter settings --- .golangci.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.golangci.yaml b/.golangci.yaml index f4e0e47ed..bfac94c66 100644 --- a/.golangci.yaml +++ b/.golangci.yaml @@ -74,6 +74,11 @@ linters: alias: hrobotmodels no-unaliased: true + revive: + rules: + - name: var-naming + arguments: [[], [], [{ skipPackageNameCollisionWithGoStd: true }]] + exclusions: generated: lax presets: From 149d7c5aa7a1b3b54aabec5086a9cae66df19958 Mon Sep 17 00:00:00 2001 From: lukasmetzner Date: Wed, 18 Feb 2026 07:34:33 +0100 Subject: [PATCH 3/3] fix: linting errors --- internal/config/config.go | 2 +- tools/doc_generation.go | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/internal/config/config.go b/internal/config/config.go index 05f97504e..44995acd2 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -47,7 +47,7 @@ type HCloudClientConfiguration struct { type RobotConfiguration struct { Enabled bool User string - Password string + Password string // #nosec G117 -- This config is never json marshaled CacheTimeout time.Duration RateLimitWaitTime time.Duration // ForwardInternalIPs is enabled by default. diff --git a/tools/doc_generation.go b/tools/doc_generation.go index 115bdd535..ef54faaff 100644 --- a/tools/doc_generation.go +++ b/tools/doc_generation.go @@ -145,19 +145,19 @@ func (t *ConstantDocTable) String(hasReadOnlyColumn bool) string { defaultVal = t.entries[constValue].Default } - tableStr.WriteString(fmt.Sprintf("| `%s` ", constValue)) - tableStr.WriteString(fmt.Sprintf("| `%s` ", typeVal)) - tableStr.WriteString(fmt.Sprintf("| `%s` ", defaultVal)) + fmt.Fprintf(&tableStr, "| `%s` ", constValue) + fmt.Fprintf(&tableStr, "| `%s` ", typeVal) + fmt.Fprintf(&tableStr, "| `%s` ", defaultVal) if hasReadOnlyColumn { readOnlyVal := "No" if t.entries[constValue].ReadOnly { readOnlyVal = "Yes" } - tableStr.WriteString(fmt.Sprintf("| `%s` ", readOnlyVal)) + fmt.Fprintf(&tableStr, "| `%s` ", readOnlyVal) } - tableStr.WriteString(fmt.Sprintf("| %s |\n", t.entries[constValue].Description)) + fmt.Fprintf(&tableStr, "| %s |\n", t.entries[constValue].Description) } return tableStr.String()