Custom FxCop Rules Download
FxCop Rules as a download
A number of cool FxCop rules for download from David Kean.
Here's a list of the rules...
"AssembliesHaveTheSameAssemblyVersion
AssembliesShouldBeAssemblyCompanyAttributed
AvoidComplicatedMethods
ConsiderMovingPInvokeMethodsToInteropMethods
EnumerationsAreMarkedSerializable
EnumeratorsShouldBeSealed
InternalNamespacesDoNotExposePublicApi
NamespaceHaveCompanyNameRoot
NotImplementedExceptionShouldNotBeThrown
PInvokeMethodsDoNotHavePublicAccessLevel
PrivateFieldNamesHaveUnderscorePrefixArePascalCased
PrivateOrAssemblyMemberNamesDoNotHaveUnderscores
UseEnvironmentNewLineInsteadOfNewLineLiteral"
For details on them, check out this post.
I've not used FxCop half as much as I should (err... um... okay, not at all yet...), but I have a .Net project in design now where I'll be using it as a standard part of the project. And while I may or may not use the above rules, they are still great examples of how to write custom rules to extend FxCop.
No comments:
Post a Comment