Update golangci lint to v2 (#1972)

* chore: migrate golangcilint to v2 config

Signed-off-by: Tyler Auerbeck <tylerauerbeck@users.noreply.github.com>

* chore: update golangci-lint version in build workflow

Signed-off-by: Tyler Auerbeck <tylerauerbeck@users.noreply.github.com>

* bump golagci-lint action to v8

Signed-off-by: Tyler Auerbeck <tylerauerbeck@users.noreply.github.com>

---------

Signed-off-by: Tyler Auerbeck <tylerauerbeck@users.noreply.github.com>
Co-authored-by: Tyler Auerbeck <tylerauerbeck@users.noreply.github.com>
This commit is contained in:
Tyler Auerbeck
2025-10-07 05:11:10 -04:00
committed by GitHub
parent 295b5e6aa9
commit fd531a75a7
2 changed files with 25 additions and 7 deletions

View File

@@ -32,9 +32,9 @@ jobs:
- name: yaml-lint
uses: ibiqlik/action-yamllint@v3
- name: Setup golangci-lint
uses: golangci/golangci-lint-action@v6
uses: golangci/golangci-lint-action@v8
with:
version: v1.64
version: v2.5.0
args: --verbose --timeout 2m
unit:
name: Unit tests

View File

@@ -1,10 +1,28 @@
---
version: "2"
linters:
disable-all: true
default: none
enable:
- gocyclo
- gofmt
- goimports
- govet
- misspell
- typecheck
exclusions:
generated: lax
presets:
- comments
- common-false-positives
- legacy
- std-error-handling
paths:
- third_party$
- builtin$
- examples$
formatters:
enable:
- gofmt
- goimports
exclusions:
generated: lax
paths:
- third_party$
- builtin$
- examples$