Skip to content

Commit b32e180

Browse files
authored
chore: add support for tagalign (#4112)
1 parent 249119e commit b32e180

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.golangci.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ linters:
5959
- sloglint # ensure consistent code style when using log/slog [fast: false, auto-fix: false]
6060
- staticcheck
6161
- stylecheck # Stylecheck is a replacement for golint [fast: false, auto-fix: false]
62+
- tagalign # check that struct tags are well aligned [fast: true, auto-fix: true]
6263
- tenv # tenv is analyzer that detects using os.Setenv instead of t.Setenv since Go1.17 [fast: false, auto-fix: false]
6364
- testifylint # Checks usage of github.com/stretchr/testify. [fast: false, auto-fix: false]
6465
- testpackage # linter that makes you use a separate _test package [fast: true, auto-fix: false]
@@ -152,3 +153,7 @@ issues:
152153
linters:
153154
- revive
154155
- stylecheck
156+
157+
- path: internal/namespaces/k8s/v1/types/types.go
158+
linters:
159+
- tagalign

internal/config/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ alias:
4747
)
4848

4949
type Config struct {
50-
Alias *alias.Config `json:"alias" yaml:"alias"`
50+
Alias *alias.Config `json:"alias" yaml:"alias"`
5151
Output string `json:"output" yaml:"output"`
5252

5353
path string

0 commit comments

Comments
 (0)