/// This rule checks for variables or fields that are assigned multiple times
47
/// to the same value. This never change the value of the variable (or fields)
47
/// using the same value. This won't change the value of the variable (or fields)
48
48
/// but should be reviewed since it could be a typo that hides a real issue in
49
49
/// the code.
50
50
/// </summary>
79
79
/// </example>
80
80
/// <remarks>This rule is available since Gendarme 2.0</remarks>
81
81
82
[Problem ("This method assign the same value twice to the same variable or field.")]
83
[Solution ("Verify the code logic. This is likely a typo where the second assignment is unneeded or should have been assigned to another variable/field.")]
82
[Problem ("This method assigns the same value twice to the same variable or field.")]
83
[Solution ("Verify the code logic. This is likely a typo where the second assignment is unneeded or should have been used with another variable/field.")]
84
84
[EngineDependency (typeof (OpCodeEngine))]
85
85
public class ReviewDoubleAssignmentRule : Rule, IMethodRule {