New CodeRush Community Plugin – DX_RedundantAssignment

Over the last few weeks I’ve returned to writing plugins for a bit, and I think some of them have reached the point where they might be useful for people beyond myself.
This post, and the next few that follow it, are intended to just put these plugins out there and see what people think.

Feel free to post comments and feedback.

DX_RedundantAssignment

This first plugin is an example of how to build a simple Refactoring and CodeIssue and link them together.

This CodeIssue will alert you if you are assigning a variable to itself. Further, the CodeIssue provides a link to a Refactoring that will remove the assignment from your code altogether.

RemoveRedundantAssignmentCS_thumb2_t

The refactoring is of course available in it’s own right via your CodeRush\Refactor Key

RemoveRedundantAssignmentVBRefactori

Download DX_RedundantAssignment

no comments
No Comments

Please login or register to post comments.