~ubuntu-branches/debian/sid/mono-tools/sid

« back to all changes in this revision

Viewing changes to gendarme/rules/Gendarme.Rules.Correctness/ReviewDoubleAssignmentRule.cs

  • Committer: Bazaar Package Importer
  • Author(s): Jo Shields
  • Date: 2010-09-13 09:08:47 UTC
  • mfrom: (14.1.2 experimental)
  • Revision ID: james.westby@ubuntu.com-20100913090847-lhu3z021w2azaj8q
Tags: 2.6.2-3
Upload to Debian Unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
44
44
 
45
45
        /// <summary>
46
46
        /// 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 {
86
86