Skip to content

Commit

Permalink
chore: add support for tagalign (scaleway#4112)
Browse files Browse the repository at this point in the history
  • Loading branch information
remyleone authored Sep 10, 2024
1 parent 249119e commit b32e180
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ linters:
- sloglint # ensure consistent code style when using log/slog [fast: false, auto-fix: false]
- staticcheck
- stylecheck # Stylecheck is a replacement for golint [fast: false, auto-fix: false]
- tagalign # check that struct tags are well aligned [fast: true, auto-fix: true]
- tenv # tenv is analyzer that detects using os.Setenv instead of t.Setenv since Go1.17 [fast: false, auto-fix: false]
- testifylint # Checks usage of github.com/stretchr/testify. [fast: false, auto-fix: false]
- testpackage # linter that makes you use a separate _test package [fast: true, auto-fix: false]
Expand Down Expand Up @@ -152,3 +153,7 @@ issues:
linters:
- revive
- stylecheck

- path: internal/namespaces/k8s/v1/types/types.go
linters:
- tagalign
2 changes: 1 addition & 1 deletion internal/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ alias:
)

type Config struct {
Alias *alias.Config `json:"alias" yaml:"alias"`
Alias *alias.Config `json:"alias" yaml:"alias"`
Output string `json:"output" yaml:"output"`

path string
Expand Down

0 comments on commit b32e180

Please sign in to comment.