Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/corefx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Perovich <alperovi@microsoft.com>2016-11-29 23:02:35 +0300
committerGitHub <noreply@github.com>2016-11-29 23:02:35 +0300
commit76d3940be68b3bab9f14d49ebc295e09b959d793 (patch)
treee5ac08279858c56c6d4a02748c0186baf2dbdd33 /CodeAnalysis.ruleset
parent6c394126303676e45e1de1070128cd4a7ee2fc31 (diff)
Enable CS2229 and CA2237 (#14060)
This change enables FxCop serialization rules requiring serialization constructors on ISerializable types and [Serializable] on ISerializable types.
Diffstat (limited to 'CodeAnalysis.ruleset')
-rw-r--r--CodeAnalysis.ruleset4
1 files changed, 2 insertions, 2 deletions
diff --git a/CodeAnalysis.ruleset b/CodeAnalysis.ruleset
index 6eb689b870..350f9171f8 100644
--- a/CodeAnalysis.ruleset
+++ b/CodeAnalysis.ruleset
@@ -16,10 +16,10 @@
<Rule Id="CA1036" Action="None" /> <!-- Overload comparison operators when implementing System.IComparable -->
<Rule Id="CA1715" Action="None" /> <!-- Type parameters names should be prefixed with T -->
<Rule Id="CA2213" Action="None" /> <!-- Disposable Fields should be disposed -->
- <Rule Id="CA2229" Action="None" /> <!-- Serializable type doesn't have a serialization constructor -->
+ <Rule Id="CA2229" Action="Error" /> <!-- Serializable type doesn't have a serialization constructor -->
<Rule Id="CA2235" Action="None" /> <!-- Serializable type has non serializable field -->
<Rule Id="CA2231" Action="None" /> <!-- Overload operator equals when overriding ValueType.Equals -->
- <Rule Id="CA2237" Action="None" /> <!-- Add [Serializable] to types that implement ISerializable -->
+ <Rule Id="CA2237" Action="Error" /> <!-- Add [Serializable] to types that implement ISerializable -->
<Rule Id="CA2200" Action="None"/> <!-- Rethrowing caught exception changes stack information -->