Skip to content
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

feat: log an error when using previously deprecated linters #4681

Merged
merged 1 commit into from
Apr 28, 2024

Conversation

ldez
Copy link
Member

@ldez ldez commented Apr 27, 2024

This PR follows the linter deprecation cycle and then the old deprecated linters will log an error (step 2) instead of a warning.

Also, the deprecated linters with the level DeprecationError will not be enabled when using enable-all.

The linters recently deprecated like execinquery or gomnd will log a warning and are still enabled when using enable-all.

As the documentation explains, the deprecated linters, not depending on the level, are still removed from presets.

@ldez ldez added enhancement New feature or improvement topic: cleanup Related to code, process, or doc cleanup labels Apr 27, 2024
@ldez ldez added this to the next milestone Apr 27, 2024
@ldez ldez merged commit 38fac89 into golangci:master Apr 28, 2024
13 checks passed
@ldez ldez deleted the feat/deprecation-errors branch April 28, 2024 20:06
@ldez ldez modified the milestones: next, v1.58 May 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or improvement topic: cleanup Related to code, process, or doc cleanup
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants