This project has moved. For the latest updates, please go here.

Configuring to not show some lines as duplicated

Aug 28, 2008 at 1:55 PM
Clone Detective is showing sections of code like the example equal operators below as duplicated throughout the solution.  These similar lines of code appear in many classes, but I don't want them shown by Clone Detective.  Is there a way to tell it to ignore certain lines or patterns?

       #region EqualOperators
        public static bool operator==(Admin left, Admin right)
        {
            if((Object)left == null && (Object)right == null)
            {
                return true;
            }
            if((Object)left == null || (Object)right == null)
            {
                return false;
            }
            if(left.ID == right.ID)
            {
                return true;
            }
            return false;
        }

        public static bool operator!=(Admin left, Admin right)
        {
            return !(left == right);
        }

        public override bool Equals(object obj)
        {
            if(!(obj is Admin))
            {
                return false;
            }
            return (this == (Admin) obj);
        }

        public override int GetHashCode()
        {
            return this.ID;
        }
        #endregion