Uh oh!
There was an error while loading. Please reload this page.
forked from dotnet/corefx
- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCodeAnalysis.ruleset
More file actions
Latest commit
41 lines (38 loc) · 2.83 KB
/
Copy pathCodeAnalysis.ruleset
File metadata and controls
41 lines (38 loc) · 2.83 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?xml version="1.0" encoding="utf-8"?>
<RuleSetName="Rules for Security Issues"Description="Code analysis rules for Security Issues."ToolsVersion="14.0">
<RulesAnalyzerId="Desktop.Analyzers"RuleNamespace="Desktop.Analyzers">
<RuleId="CA5350"Action="Error" /> <!-- Do not use Weak/Broken cryptographic algorithms -->
<RuleId="CA5351"Action="Error" />
<RuleId="CA2153"Action="Error"/> <!-- Do not catch corrupted process state exceptions -->
</Rules>
<RulesAnalyzerId="Desktop.CSharp.Analyzers"RuleNamespace="Desktop.Analyzers">
<RuleId="CA5350"Action="Error" /> <!-- Do not use Weak/Broken cryptographic algorithms -->
<RuleId="CA5351"Action="Error" />
<RuleId="CA2153"Action="Error"/> <!-- Do not catch corrupted process state exceptions -->
</Rules>
<RulesAnalyzerId="Microsoft.Analyzers.ManagedCodeAnalysis"RuleNamespace="Microsoft.Rules.Managed">
<RuleId="CA1001"Action="None" /> <!-- Non disposable class owns disposable fields -->
<RuleId="CA1018"Action="Error" /> <!-- Specify attribute usage on attribute -->
<RuleId="CA1036"Action="None" /> <!-- Overload comparison operators when implementing System.IComparable -->
<RuleId="CA1715"Action="None" /> <!-- Type parameters names should be prefixed with T -->
<RuleId="CA2213"Action="None" /> <!-- Disposable Fields should be disposed -->
<RuleId="CA2229"Action="Error" /> <!-- Serializable type doesn't have a serialization constructor -->
<RuleId="CA2235"Action="None" /> <!-- Serializable type has non serializable field -->
<RuleId="CA2231"Action="None" /> <!-- Overload operator equals when overriding ValueType.Equals -->
<RuleId="CA2237"Action="Error" /> <!-- Add [Serializable] to types that implement ISerializable -->
<RuleId="CA2200"Action="None"/> <!-- Rethrowing caught exception changes stack information -->
<RuleId="CA2101"Action="None" /> <!-- Specify marshaling for P/Invoke string arguments -->
<RuleId="CA1401"Action="None" /> <!-- P/Invoke method should not be visible -->
<RuleId="CA2214"Action="None" /> <!-- Do not call overridable methods in constructors -->
</Rules>
<RulesAnalyzerId="System.Runtime.Analyzers"RuleNamespace="System.Runtime.Analyzers">
<RuleId="CA2002"Action="None" /> <!-- Do not lock on objects with weak identity -->
</Rules>
<RulesAnalyzerId="System.Runtime.CSharp.Analyzers"RuleNamespace="System.Runtime.CSharp.Analyzers">
<RuleId="CA2002"Action="None" /> <!-- Do not lock on objects with weak identity -->
</Rules>
<RulesAnalyzerId="System.Security.Cryptography.Hashing.Algorithms.Analyzers"RuleNamespace="System.Security.Cryptography.Hashing.Algorithms.Analyzers">
<RuleId="CA5350"Action="Error" /> <!-- Do not use Weak/Broken cryptographic algorithms -->
<RuleId="CA5351"Action="Error" />
</Rules>
</RuleSet>