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: deprecate usage of linter alternative names #4562

Merged
merged 9 commits into from
Mar 28, 2024

Conversation

ldez
Copy link
Member

@ldez ldez commented Mar 21, 2024

Displays a warning when using alternative names.

I used the Validator because the linter names and alternative names are required for the analysis, then it cannot be done inside the Loader.

FYI: unused, gosimple, staticcheck cannot be merged as one "linter" because their requirements are completely different.

Fixes #357
Related #3746

@ldez ldez added enhancement New feature or improvement area: config Related to .golangci.yml and/or cli options linter: update Update the linter implementation inside golangci-lint labels Mar 21, 2024
@ldez ldez modified the milestone: next Mar 21, 2024
@ldez ldez force-pushed the feat/deprecate-alt-names branch from aed93f3 to b6cec67 Compare March 24, 2024 13:07
@ldez ldez mentioned this pull request Mar 25, 2024
pkg/lint/lintersdb/validator.go Outdated Show resolved Hide resolved
pkg/logutils/mock.go Outdated Show resolved Hide resolved
pkg/logutils/mock.go Outdated Show resolved Hide resolved
pkg/logutils/mock.go Outdated Show resolved Hide resolved
pkg/logutils/mock.go Outdated Show resolved Hide resolved
pkg/logutils/mock.go Outdated Show resolved Hide resolved
@ldez ldez added this to the next milestone Mar 28, 2024
@ldez ldez force-pushed the feat/deprecate-alt-names branch from bdae2e5 to 44e0029 Compare March 28, 2024 19:38
@ldez ldez merged commit 5a9f5c1 into golangci:master Mar 28, 2024
13 checks passed
@ldez ldez deleted the feat/deprecate-alt-names branch March 28, 2024 19:56
@ldez ldez modified the milestones: next, v1.58 May 8, 2024
laurazard added a commit to laurazard/cli that referenced this pull request Jul 25, 2024
laurazard added a commit to laurazard/cli that referenced this pull request Jul 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: config Related to .golangci.yml and/or cli options enhancement New feature or improvement linter: update Update the linter implementation inside golangci-lint
Projects
None yet
Development

Successfully merging this pull request may close these issues.

megacheck, unused, gosimple had been deprecated in favor of staticcheck
5 participants