Skip to content

feat: remove compatibility layer for formatters configuration #5446

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 8 commits into from
Feb 19, 2025

Conversation

ldez
Copy link
Member

@ldez ldez commented Feb 19, 2025

Some other changes will be added when I will add the new linters configuration (#5299).

Follows #5357

Fixes #5296

@ldez ldez added enhancement New feature or improvement area: formatters/fmt labels Feb 19, 2025
@ldez ldez added this to the v2-unreleased milestone Feb 19, 2025
@ldez ldez requested review from alexandear and bombsimon February 19, 2025 14:51
Copy link
Member

@bombsimon bombsimon left a comment

Choose a reason for hiding this comment

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

If a formatter is enabled inside formatters and linters, the configuration of formatters.settings will override linters-settings even if the configuration is omitted or empty inside formatters.settings section.

Should this be tested? Or even a case with config only present under linters?

@ldez
Copy link
Member Author

ldez commented Feb 19, 2025

This sentence was from the previous PR, now using linter settings is not allowed to define formatter settings.

Should this be tested?

It is tested by integration tests, but I will improve tests when I will add new linter configuration.

@ldez ldez merged commit 7611c76 into golangci:main Feb 19, 2025
18 checks passed
@ldez ldez deleted the feat/formatters-config branch February 19, 2025 18:43
@busser busser mentioned this pull request Mar 14, 2025
Closed
@ldez ldez modified the milestones: v2-unreleased, v2 Mar 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: formatters/fmt enhancement New feature or improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

🌟 Let's talk about "formatters"
3 participants