The Artima Developer Community
Sponsored Link

.NET Buzz Forum
FxCop 1.312 Released!

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Darrell Norton

Posts: 876
Nickname: dnorton
Registered: Mar, 2004

Darrell Norton is a consultant for CapTech Ventures.
FxCop 1.312 Released! Posted: Oct 29, 2004 6:28 AM
Reply to this message Reply

This post originated from an RSS feed registered with .NET Buzz by Darrell Norton.
Original Post: FxCop 1.312 Released!
Feed Title: Darrell Norton's Blog
Feed URL: /error.htm?aspxerrorpath=/blogs/darrell.norton/Rss.aspx
Feed Description: Agile Software Development: Scrum, XP, et al with .NET
Latest .NET Buzz Posts
Latest .NET Buzz Posts by Darrell Norton
Latest Posts From Darrell Norton's Blog

Advertisement

Download

Major features of this release
======================
-Simplification of report xml.
-New Fix Categories: Each message is marked to indicate if the suggested fix will constitute a breaking change for previously shipped code.
-User Interface Improvements: windowing behavior has been made more consistent
-Auto Update: Sign up to get notified when a new version of FxCop is available.

New Rules
========
Design
-Avoid excessive parameters on generic types
-Collections should implement generic interface
-Do not declare static members on generic types
-Do not expose generic lists
-Do not nest generic types in member signatures
-Enums should have zero value
-Generic methods should provide type parameter
-Members should not expose certain concrete types
-Types should not extend certain base types
-Use generic event handler instances
-Use generics where appropriate

Interoperability
-Avoid overloads in ComVisible Interfaces
-Call GetLastError immediately after PInvoke
-Com visible base types should be ComVisible
-Mobility
-Do not use idle process priority
-Do not use times that prevent power state changes
-Naming
-Compound words should be cased correctly
-Do not name enum values ‘Reserved’
-Resource string compound words should be cased correctly

Performance
-Avoid calls that box value types
-Avoid costly calls where possible
-Avoid unnecessary string creation
-Avoid unused parameters
-Do not cast unnecessarily
-Do not ignore method results
-Do not initialize unnecessarily
-Remove unused locals
-Use literals where appropriate

Portability
-Avoid testing for floating point equality
-PInvoke declarations should be portable
-Security
-Catch non-CLSCompliant exceptions in general handlers
-Review sql queries for security vulnerabilities

Usage
-Call base class methods on ISerializable types
-Do not dispose objects multiple times
-Do not raise reserved exception types
-Implement ISerializable correctly
-Implement serialization methods correctly
-Literals should be spellect correctly
-Mark all non-serializable fields
-Provide deserialization methods for optional fields
-Rethrow to preserve stack details
-Review Boolean assignment evaluations
-Use managed equivalents of win32 api

Migrating Custom Rules
=================
Please see the readme at http://www.gotdotnet.com/team/fxcop/Misc/gotdotnetstyle.aspx?url=1.312_readme.mht for more details on how to migrate custom rules.


This Blog Hosted On: http://www.DotNetJunkies.com/

Read: FxCop 1.312 Released!

Topic: Word as Editor in Outlook Previous Topic   Next Topic Topic: Microsoft Partner Pack for Win XP

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use