Skip to content

Conversation

mlafeldt
Copy link
Collaborator

@mlafeldt mlafeldt commented Sep 2, 2025

What this means in practice for our code:

  • Sort imports 🚀
  • Group adjacent parameters with the same type
  • Enforce rules in CI

Inspired by Prometheus

- Sort imports
- Group adjacent parameters with the same type
- Enforce rules in CI
@mlafeldt mlafeldt self-assigned this Sep 2, 2025
formatters:
enable:
- gci
- gofumpt
Copy link
Collaborator

Choose a reason for hiding this comment

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

ah, nice! I've been running gofumpt locally for a while before pushing my PRs.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yeah, I have it enabled in VS Code and vim as well 👍

@mlafeldt mlafeldt merged commit 06d1fc5 into marcboeker:main Sep 3, 2025
32 checks passed
@mlafeldt mlafeldt deleted the golangci-lint-fmt branch September 3, 2025 08:00
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.

2 participants