1
0
mirror of https://github.com/lxc/distrobuilder.git synced 2026-02-05 06:45:19 +01:00

golang-ci: Upgrade to v2

Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
This commit is contained in:
Stéphane Graber
2025-04-02 14:18:03 -04:00
parent 75b68c0aa5
commit 8d36e37670

View File

@@ -1,14 +1,38 @@
version: "2"
linters:
enable:
- gofmt
- misspell
- godot
- whitespace
- gci
- errorlint
linters-settings:
gci:
sections:
- standard
- default
- prefix(github.com/lxc/distrobuilder)
- godot
- misspell
- whitespace
exclusions:
generated: lax
presets:
- comments
- common-false-positives
- legacy
- std-error-handling
paths:
- third_party$
- builtin$
- examples$
rules:
- linters:
- staticcheck
text: "ST1005:"
formatters:
enable:
- gci
- gofumpt
settings:
gci:
sections:
- standard
- default
- prefix(github.com/lxc/distrobuilder)
exclusions:
generated: lax
paths:
- third_party$
- builtin$
- examples$