|
ID
|
Rule Name
|
Violation Treatment
|
|
CA1001
|
Types that own disposable fields should be disposable
|
Error
|
|
CA1003
|
Use generic event handler instances
|
Error
|
|
CA1004
|
Generic methods should provide type parameter
|
Warning
|
|
CA1006
|
Do not nest generic types in member signature
|
Warning
|
|
CA1008
|
Enums should have zero value
|
Error
|
|
CA1009
|
Declare event handlers correctly
|
Error
|
|
CA1010
|
Collections should implement generic interface
|
Warning
|
|
CA1011
|
Consider passing base types as parameter
|
Warning
|
|
CA1012
|
Abstract types should not have constructors
|
Error
|
|
CA1014
|
Mark assemblies with CLSCompliantAttribute attribute
|
Error
|
|
CA1017
|
Mark assemblies with ComVisibleAttribute
|
Error
|
|
CA1018
|
Mark attributes with the AttributeUsageAttribute attribute
|
Warning
|
|
CA1019
|
Define accessors for attribute arguments
|
Warning
|
|
CA1023
|
Indexers should not be multidimensional
|
Warning
|
|
CA1024
|
Use properties where appropriate
|
Warning
|
|
CA1025
|
Replace repetitive arguments with params array
|
Warning
|
|
CA1026
|
Default parameters should not be used
|
Error
|
|
CA1027
|
Mark enums with FlagsAttribute
|
Warning
|
|
CA1028
|
Enum storage should be Int32
|
Warning
|
|
CA1030
|
Use events where appropriate
|
Warning
|
|
CA1032
|
Implement standard exception constructions
|
Error
|
|
CA1034
|
Nested types should not be visible
|
Error
|
|
CA1036
|
Override methods on comparable types
|
Warning
|
|
CA1038
|
Enumerators should be strongly typed
|
Warning
|
|
CA1039
|
Lists are strongly typed
|
Warning
|
|
CA1040
|
Avoid empty interfaces
|
Warning
|
|
CA1041
|
Provide ObsoleteAttribute message
|
Error
|
|
CA1043
|
Use integral or string argument for indexers
|
Warning
|
|
CA1044
|
Properties should not be write only
|
Warning
|
|
CA1047
|
Do not declare protected members in sealed types
|
Error
|
|
CA1049
|
Types that own native resources should be disposable
|
Warning
|
|
CA1050
|
Declare types in namespaces
|
Warning
|
|
CA1051
|
Do not declare visible instance fields
|
Error
|
|
CA1052
|
Static holder types should be sealed
|
Error
|
|
CA1053
|
Static holders should not have constructors
|
Error
|
|
CA1054
|
URI parameters should not be strings
|
Warning
|
|
CA1055
|
URI return values should not be strings
|
Warning
|
|
CA1056
|
URI properties should not be strings
|
Warning
|
|
CA1057
|
String URI overloads call System.Uri overloads
|
Warning
|
|
CA1058
|
Types should not extend certain base types
|
Error
|
|
CA1059
|
Members should not expose certain concrete types
|
Warning
|
|
CA1062
|
Validate arguments of public methods
|
Warning
|
|
CA1063
|
Implement IDisposable correctly
|
Error
|
|
CA1064
|
Exceptions should be public
|
Warning
|
|
CA1065
|
Do not raise exceptions in unexpected locations
|
Error
|