Skip to content

Use golangci-lint as formatter - #120

Merged
wagoodman merged 1 commit into
mainfrom
gofmt-detection
Jun 18, 2026
Merged

wagoodman merged 1 commit into
mainfrom
gofmt-detection

Conversation

@wagoodman

Copy link
Copy Markdown
Contributor

This pivots to using gci over goimports or gosimports, since gci does everything we need under one tool. In that same vein, we are replacing gofmt with golangci-lint fmt so that all formatting is done under one tool. This will use the golangci lint configuration to understand if gosimports needs to be run or not based off of the presence of gci or goimports.

This additionally makes the following changes:

  • Adds lint task
  • Renames lint-fix to lint:fix to be consistent with other tasks and adds an alias for backwards compatibility
  • Adds task aliasing so we don't need to write wrapper tasks

Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>
@wagoodman wagoodman added the enhancement New feature or request label Jun 18, 2026
@wagoodman
wagoodman merged commit 068e950 into main Jun 18, 2026
16 checks passed
@wagoodman
wagoodman deleted the gofmt-detection branch June 18, 2026 14:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant