Skip to content

Conversation

@Shion1305
Copy link
Contributor

@Shion1305 Shion1305 commented Dec 1, 2025

  • 🔧 (golangci-lint) Enable tagalign rule
  • 🚨 golangci-lint

Check List

This PR enables tagalign rule in golangci-lint, which enables us to unify ordering of struct tags.

Currently ordering of yaml or json tags are not consistent, I felt we can benefit from this linting rule.

Closes: #4368

t.Fatal("rt.GOOS is empty")
}
if rt.GOARCH == "" {
if rt.GOARCH == "" { //nolint:staticcheck
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I noticed some lint errors here, so I've added nolint annotations. lmk what you think

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Weird... test-ci is currently failing on these annotations but running local does not give me any errors 🤔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Enable tagalign golangci-lint rule to unify struct tag ordering

1 participant