Don't use parens on conditions where it's unnecessary.
Enable ParenthesesAroundCondition with AllowSafeAssignment on.
Address code review comments.
Remove unused variable
Enable SynmbolName cop with CamelCase allowed. Remove duplicate definitions.