1-10 of 284 < Previous ... Next >
26 votes

local static members should be required to be prefixed with the class name, similar to 'this' for local instance members

SA1101 - works for instance members, but not static

id# 180 | Planned Release: StyleCop 4.3.3.0 | 1 comments | Last Updated: Mon at 11:25 AM  by TATWORTH
7 votes

Only one property accessor on a single line

StyleCop doesn't like this syntax: public TimeSpan DueTime { get { return _DueTime; } set { _DueTime = value; if (_Timer != null) { Timer.Change(DueTime, TimeSpan.FromMill...

id# 54 | Planned Release: Community Suggestions | 1 comments | Last Updated: Mon at 11:23 AM  by TATWORTH
12 votes

SA0102 with default values supplied to an argument

With StyleCop 4.3.3.0, I am getting "XXXX.cs(9999,1): warning : SA0102: A syntax error has been discovered in file XXXX.cs on line 9999." private void GetSomethingLists(List<double> i, Li...

id# 279 | Planned Release: None | 3 comments | Last Updated: Mon at 11:19 AM  by TATWORTH
2 votes

Turn off SA0102

Was very cool if we have a option in settings file to turn off SA0102. Sometimes we dont need this check because the compiler check for us.. we can enable only style check.. Thanks!

id# 284 | Planned Release: None | 0 comments | Last Updated: Mon at 11:14 AM  by TATWORTH
5 votes

LINQ operator "let" causes SA1513/SA1102 when followed by "orderby", "select", etc.

A LINQ expression such as the following fails rule SA1513, which expects a blank line after the closing curly brace. var results = from s in myStringArray let result = new ...

id# 210 | Planned Release: StyleCop 4.3.3.0 | 0 comments | Last Updated: Sun at 10:22 PM  by cyberfuel
2 votes

Limit Line Lengths - Readability Rule

Add two new rules, or one rule with two parameters: The first rule would be a warning - long lines (default to 80 characters?) The second rule would be an error - the line is too long (default to 1...

id# 272 | Planned Release: None | 0 comments | Last Updated: Feb 2 at 9:18 AM  by Foraldo
1 vote

Exception thrown by analyzer 'Naming Rules'

When I try to analyze local (or on a build server) with a msbuild task I get the following Exception: Microsoft (R)-Buildmodul, Version 3.5.30729.1 Microsoft .NET Framework, Version 2.0.50727.3...

id# 283 | Planned Release: None | 0 comments | Last Updated: Feb 1 at 4:06 PM  by mar99
4 votes

SA1118: Does not account for XDocument object params constructor frequently spanning multiple lines

When creating xml documents via X Document constructors, the standard constructor can take a nested list of object. This means the constructor spans multiple lines. To not do this way results in a ...

id# 43 | Planned Release: Community Suggestions | 3 comments | Last Updated: Jan 28 at 1:03 PM  by shuruev
21 votes

SA1027: TabsMustNotBeUsed

Include optional opposite rule (SpacesShouldNotBeUsedForIndentation), or make the rule configurable.

id# 5 | Planned Release: Community Suggestions | 4 comments | Last Updated: Jan 25 at 9:23 PM  by taarskog
1 vote

SA1009 with type-casting parenthesis

Could you please check a bug that I described here? in http://code.msdn.microsoft.com/sourceanalysis/Thread/View.aspx?ThreadId=2489 This piece of code produces SA1009: using System; using S...

id# 270 | Planned Release: None | 1 comments | Last Updated: Jan 25 at 11:15 AM  by shuruev

Configure View

Search
Sort by Id
Release
Title
Updated
Votes
1-10 of 284 < Previous 1 2 3 4 5 6 7 8 9 10 ... Next >
Updating...
Page view tracker