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

adds rule use-any #660

Merged
merged 1 commit into from Mar 29, 2022
Merged

adds rule use-any #660

merged 1 commit into from Mar 29, 2022

Conversation

chavacava
Copy link
Collaborator

GO 1.18 includes a type alias for interface{}: any.

Now, the whole codebase of GO uses any in place of interface{}
This rule spots instances of interface{} and proposes to change it into any

Refs: GO 1.18 release note and GO codebase commit replacing ìnterfacebyany`

@chavacava chavacava added the rule proposal Issue proposing a new rule label Mar 29, 2022
@chavacava chavacava requested a review from mgechev March 29, 2022 17:01
@mgechev mgechev merged commit 671c55d into master Mar 29, 2022
@mgechev mgechev deleted the rule/use-any branch March 29, 2022 18:25
subham-deepsource pushed a commit to DeepSourceCorp/revive that referenced this pull request Apr 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
rule proposal Issue proposing a new rule
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants