diff options
Diffstat (limited to 'packages/microsoft.dotnet.buildtools/2.1.0-rc1-03006-01/lib/Default.ruleset')
-rwxr-xr-x | packages/microsoft.dotnet.buildtools/2.1.0-rc1-03006-01/lib/Default.ruleset | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/packages/microsoft.dotnet.buildtools/2.1.0-rc1-03006-01/lib/Default.ruleset b/packages/microsoft.dotnet.buildtools/2.1.0-rc1-03006-01/lib/Default.ruleset new file mode 100755 index 0000000000..5dcc1c60e2 --- /dev/null +++ b/packages/microsoft.dotnet.buildtools/2.1.0-rc1-03006-01/lib/Default.ruleset @@ -0,0 +1,41 @@ +<?xml version="1.0" encoding="utf-8"?> +<RuleSet Name="Rules for Security Issues" Description="Code analysis rules for Security Issues." ToolsVersion="14.0"> + <Rules AnalyzerId="Desktop.Analyzers" RuleNamespace="Desktop.Analyzers"> + <Rule Id="CA5350" Action="Error" /> <!-- Do not use Weak/Broken cryptographic algorithms --> + <Rule Id="CA5351" Action="Error" /> + <Rule Id="CA2153" Action="Error"/> <!-- Do not catch corrupted process state exceptions --> + </Rules> + <Rules AnalyzerId="Desktop.CSharp.Analyzers" RuleNamespace="Desktop.Analyzers"> + <Rule Id="CA5350" Action="Error" /> <!-- Do not use Weak/Broken cryptographic algorithms --> + <Rule Id="CA5351" Action="Error" /> + <Rule Id="CA2153" Action="Error"/> <!-- Do not catch corrupted process state exceptions --> + </Rules> + <Rules AnalyzerId="Microsoft.Analyzers.ManagedCodeAnalysis" RuleNamespace="Microsoft.Rules.Managed"> + <Rule Id="CA1001" Action="None" /> <!-- Non disposable class owns disposable fields --> + <Rule Id="CA1018" Action="None" /> <!-- Specify attribute usage on attribute --> + <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="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="CA2200" Action="None"/> <!-- Rethrowing caught exception changes stack information --> + + <Rule Id="CA2101" Action="None" /> <!-- Specify marshaling for P/Invoke string arguments --> + <Rule Id="CA1401" Action="None" /> <!-- P/Invoke method should not be visible --> + + <Rule Id="CA2214" Action="None" /> <!-- Do not call overridable methods in constructors --> + </Rules> + <Rules AnalyzerId="System.Runtime.Analyzers" RuleNamespace="System.Runtime.Analyzers"> + <Rule Id="CA2002" Action="None" /> <!-- Do not lock on objects with weak identity --> + </Rules> + <Rules AnalyzerId="System.Runtime.CSharp.Analyzers" RuleNamespace="System.Runtime.CSharp.Analyzers"> + <Rule Id="CA2002" Action="None" /> <!-- Do not lock on objects with weak identity --> + </Rules> + <Rules AnalyzerId="System.Security.Cryptography.Hashing.Algorithms.Analyzers" RuleNamespace="System.Security.Cryptography.Hashing.Algorithms.Analyzers"> + <Rule Id="CA5350" Action="Error" /> <!-- Do not use Weak/Broken cryptographic algorithms --> + <Rule Id="CA5351" Action="Error" /> + </Rules> +</RuleSet>
\ No newline at end of file |