When I have a switch statement, and there are several clauses that use a value, rule JS1003 reports that the variable declaration should be moved into the switch statement.
var value = new ComplexS...
Id #8850 | Release:
| Updated: Jul 1, 2013 at 3:41 PM by joalcorn | Created: Jul 1, 2013 at 3:41 PM by joalcorn
The rule JSL1003 can be a bit misleading in the case of a loop.
bool isTrue = string.IsNullOrWhitespace(x);
// do something
// do something else
Id #8107 | Release:
| Updated: Feb 13, 2013 at 5:17 PM by xrNdFLy | Created: Jul 13, 2012 at 9:30 AM by xrNdFLy
JSL Rule JL1600: MembersMustBeInAlphabeticalOrder conflicts with StyleCopRule SA1203: Constants must appear before fields.
If I have a constant value and a field, and I reorder them according to ...
Id #8085 | Release:
| Updated: Feb 13, 2013 at 5:17 PM by xrNdFLy | Created: Jul 3, 2012 at 2:51 AM by joalcorn
Any code that is decorated with GeneratedCodeAttribute is not ignored when StyleCop is set to ignore generated code.
Id #8084 | Release:
| Updated: Feb 13, 2013 at 5:17 PM by joalcorn | Created: Jul 3, 2012 at 2:45 AM by joalcorn