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

Add a self-assignment inspection #1377

Open
dlsniper opened this issue Feb 25, 2015 · 1 comment
Open

Add a self-assignment inspection #1377

dlsniper opened this issue Feb 25, 2015 · 1 comment
Assignees
Milestone

Comments

@dlsniper
Copy link
Member

There should be an inspection to determine if we assign a variable to itself:

func a() {
    b := 1
    b = b
   _ = b
}
@dlsniper dlsniper added this to the 1.maybe milestone Feb 25, 2015
@ignatov ignatov self-assigned this Feb 25, 2015
@dlsniper
Copy link
Member Author

@ignatov I'd like to work on this myself to get used to the way inspections work and this looks quite simple, that's why I didn't assigned it to you. Also it's not really high priority so I've put it into the maybe part as we can do 1.0 without having it :)

@dlsniper dlsniper changed the title [1.maybe] Add a self-assignment inspection Add a self-assignment inspection Nov 3, 2015
@dlsniper dlsniper assigned dlsniper and unassigned ignatov Dec 24, 2015
@dlsniper dlsniper modified the milestones: 1.0.0, 1.0 maybe? Dec 24, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants