Joseph Guadagno

Rants, Raves and other stuff about ASP.NET development.

Announcing the release of Microsoft Source Analysis for C#

Excerpt from the post...

We are very excited to announce the release of a new developer tool from Microsoft, Source Analysis for C#. This tool is known internally within Microsoft as StyleCop, and has been used for many years now to help teams enforce a common set of best practices for layout, readability, maintainability, and documentation of C# source code.

Source Analysis is similar in many ways to Microsoft Code Analysis (specifically FxCop), but there are some important distinctions. FxCop performs its analysis on compiled binaries, while Source Analysis analyzes the source code directly. For this reason, Code Analysis focuses more on the design of the code, while Source Analysis focuses on layout, readability and documentation. Most of that information is stripped away during the compilation process, and thus cannot be analyzed by FxCop.

Take a look at http://blogs.msdn.com/sourceanalysis/archive/2008/05/23/announcing-the-release-of-microsoft-source-analysis.aspx

Comments

stevegourley said:

How do you rememdy "The file has no header, the header Xml is invalid, or the header is not located at the top of the file"

for a .cs file?

# May 23, 2008 1:52 PM

jguadagno said:

Was this question related to this article?

# May 23, 2008 1:57 PM

stevegourley said:

yes, its an error thrown from this source analysis thing that he's blogging about.

# May 23, 2008 2:08 PM

jguadagno said:

Unfortunately, Microsoft did not release the "rules" for the tool yet so I can not help you with it.  From what I can see in Reflector, it is check for some text at the top of each file.

# May 23, 2008 2:27 PM

stevegourley said:

do you add headers to your c# files?

# May 23, 2008 2:45 PM

jguadagno said:

Nope. Not yet at least.

# May 23, 2008 3:42 PM

rascunho » Blog Archive » links for 2008-05-23 said:

Pingback from  rascunho  » Blog Archive   » links for 2008-05-23

# May 23, 2008 4:48 PM

Jason Allor said:

Details about the file header rules have been posted here: blogs.msdn.com/.../source-analysis-4-2-documentation-rules.aspx

# May 25, 2008 6:49 AM

Maris said:

Hi friend!

I liked your site!

Good work! ;)

# May 26, 2008 8:45 PM

Lira said:

Hi! gracious website!

mere angelic turn out c advance webmaster!

to the fullest extent regards! ;)

# May 27, 2008 3:57 AM

Rachel said:

Hey! Excellent site!

Very good work webmaster!

Best regards! ;)

# May 27, 2008 5:13 PM

Clara said:

Hey! Excellent site!

Very good work webmaster!

Best regards! ;)

# June 2, 2008 10:45 PM

Forexman said:

Hi. This is really interesting post. Thank You! I have just subscribed to Your rss!

Best regards

# June 5, 2008 4:20 AM

OstinPilltus said:

Hi! My fredns!

Very good site. I like it.

Best regards! ;)

# June 5, 2008 5:53 AM
Leave a Comment

(required) 

(required) 

(optional)

(required)