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

importas: fix duplication detection when aliases use regular expression replacement pattern #3869

Merged
merged 1 commit into from
Jun 2, 2023

Conversation

ldez
Copy link
Member

@ldez ldez commented Jun 2, 2023

skip the duplication check when the alias is a regular expression replacement pattern (ie. contains $).

Fixes #3867

@ldez ldez added bug Something isn't working linter: update Update the linter implementation inside golangci-lint labels Jun 2, 2023
@ldez ldez force-pushed the fix/importad-alias-regexp branch from d0e165d to c56d7af Compare June 2, 2023 08:51
@ldez
Copy link
Member Author

ldez commented Jun 2, 2023

The CI is broken due to depguard issue.

So I will exceptionally merge without waiting to be able to create a release.

@ldez ldez merged commit e524332 into golangci:master Jun 2, 2023
12 of 13 checks passed
@ldez ldez deleted the fix/importad-alias-regexp branch June 2, 2023 09:01
@ldez ldez added this to the v1.53 milestone Mar 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working linter: update Update the linter implementation inside golangci-lint
Projects
None yet
Development

Successfully merging this pull request may close these issues.

importas linter has false positive duplicate configuration v1.53.0
1 participant