Skip to content

chore(golangci-lint): improve and clean configuration#2808

Merged
andreynering merged 2 commits intogo-task:mainfrom
ldez:feat/golangci-lint-config
Apr 24, 2026
Merged

chore(golangci-lint): improve and clean configuration#2808
andreynering merged 2 commits intogo-task:mainfrom
ldez:feat/golangci-lint-config

Conversation

@ldez
Copy link
Copy Markdown
Contributor

@ldez ldez commented Apr 23, 2026

A small improvement to your configuration file.

gofmt is redundant with gofumpt.
rewrite-rules can be replaced with modernize.

There is no need to instruct all the formatters with the import group, gci already handles it.

I guess the options inside the exclusion section (paths and generated) have been created during the v1 to v2 migration, those elements was here only for some edge case compatibilities with the v1, but you don't need them.

Copy link
Copy Markdown
Member

@andreynering andreynering left a comment

Choose a reason for hiding this comment

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

This is great, thank you!

@andreynering andreynering merged commit ecffcc7 into go-task:main Apr 24, 2026
14 checks passed
@ldez ldez deleted the feat/golangci-lint-config branch April 24, 2026 07:15
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