Fixing no-self-compare rule to check for operator