Skip to content

Commit 5026a4e

Browse files
Disabled native Code Analysis warning from code in sqlncli.h which is a Microsoft supplied file. Preferring to do that than modify the header to put the supression in the .h file itself. This still leaves two C6102 errors that don't appear to be in the IDE to disable. It's possible it's a rule that was in the RC that was removed in RTM that's somehow leftover.
1 parent a99d39c commit 5026a4e

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

src/SqlLocalDb.ruleset

+12-6
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
1-
<?xml version="1.0" encoding="utf-8"?>
2-
<RuleSet Name="SqlLocalDb Rules" Description="This rule set contains rules for the SqlLocalDb solution.&#xD;&#xA;&#xD;&#xA;" ToolsVersion="11.0">
3-
<IncludeAll Action="Warning" />
4-
<Rules AnalyzerId="Microsoft.Analyzers.ManagedCodeAnalysis" RuleNamespace="Microsoft.Rules.Managed">
5-
<Rule Id="CA1707" Action="None" />
6-
</Rules>
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<RuleSet Name="SqlLocalDb Rules" Description="This rule set contains rules for the SqlLocalDb solution." ToolsVersion="12.0">
3+
<IncludeAll Action="Warning" />
4+
<Rules AnalyzerId="Microsoft.Analyzers.ManagedCodeAnalysis" RuleNamespace="Microsoft.Rules.Managed">
5+
<Rule Id="CA1707" Action="None" />
6+
</Rules>
7+
<Rules AnalyzerId="Microsoft.Analyzers.NativeCodeAnalysis" RuleNamespace="Microsoft.Rules.Native">
8+
<Rule Id="C6102" Action="None" />
9+
</Rules>
10+
<Rules AnalyzerId="Microsoft.Analyzers.NativeCodeAnalysis" RuleNamespace="Microsoft.Rules.Native">
11+
<Rule Id="C28112" Action="None" />
12+
</Rules>
713
</RuleSet>

0 commit comments

Comments
 (0)