Skip to content

docs: explicitly describe that the migrate command automatically migrate linters.presets #5697

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 5, 2025

Conversation

kyu08
Copy link
Contributor

@kyu08 kyu08 commented Apr 5, 2025

Thanks for maintaining golangci-lint always!
golangci-lint helps me and my team prevent bugs by making static analysis easy to execute. 👏

When I read the migration guide to v2, I wondered, "How should I migrate preset linters to v2 config file? Should I indentify what linters belong to the preset, and write out each linter name to v2 config file one by one?".
After executing the migrate command, I realized the migrate command did it instead of me. 😂

I believe it would be easier to understand if this were described in migration guide.
So I suggest adding description that shows the migrate command automatically migrates linters.presets to linters.enable.

image
image

…inters of the presets to the `linters.enable` field
Copy link

boring-cyborg bot commented Apr 5, 2025

Hey, thank you for opening your first Pull Request !

@CLAassistant
Copy link

CLAassistant commented Apr 5, 2025

CLA assistant check
All committers have signed the CLA.

@kyu08 kyu08 changed the title docs: explicitly specify that the migrate command writes individual linters of the presets to the linters.enable field docs: explicitly specify that the migrate command writes individual linters of the presets to the linters.enable field Apr 5, 2025
@kyu08 kyu08 changed the title docs: explicitly specify that the migrate command writes individual linters of the presets to the linters.enable field docs: explicitly describe that the migrate command automatically adds individual linters to linters.enable Apr 5, 2025
@ldez ldez self-requested a review April 5, 2025 11:09
@ldez ldez changed the title docs: explicitly describe that the migrate command automatically adds individual linters to linters.enable docs: explicitly describe that the migrate command automatically migrate linters.presets Apr 5, 2025
@ldez ldez added this to the v2-unreleased milestone Apr 5, 2025
Copy link
Member

@ldez ldez left a comment

Choose a reason for hiding this comment

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

LGTM

@ldez ldez merged commit ace25c9 into golangci:main Apr 5, 2025
19 checks passed
@ldez ldez modified the milestones: v2-unreleased, v2.1 Apr 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants