Rule JS1003 reporting on Switch statements

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: None | Updated: Jul 1, 2013 at 3:41 PM by joalcorn | Created: Jul 1, 2013 at 3:41 PM by joalcorn

JSL1003 - Sometimes not as performance friendly

The rule JSL1003 can be a bit misleading in the case of a loop.   bool isTrue = string.IsNullOrWhitespace(x);   while (true) { if (isTrue) { // do something } else { // do something else ...

Id #8107 | Release: None | Updated: Feb 13, 2013 at 5:17 PM by xrNdFLy | Created: Jul 13, 2012 at 9:30 AM by xrNdFLy

Rule JL1600 conflicts with default stylecop rule SA1203

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: None | Updated: Feb 13, 2013 at 5:17 PM by xrNdFLy | Created: Jul 3, 2012 at 2:51 AM by joalcorn

Code decorated with GeneratedCodeAttribute not ignored.

Any code that is decorated with GeneratedCodeAttribute is not ignored when StyleCop is set to ignore generated code.

Id #8084 | Release: None | Updated: Feb 13, 2013 at 5:17 PM by joalcorn | Created: Jul 3, 2012 at 2:45 AM by joalcorn

  • 1-4 of 4 Work Items
    • Previous
    • 1
    • Next
    • Showing
    • All
    • Work Items