-
Notifications
You must be signed in to change notification settings - Fork 8
/
ScpDriverInterface.fxcop
151 lines (151 loc) · 7.19 KB
/
ScpDriverInterface.fxcop
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
<?xml version="1.0" encoding="utf-8"?>
<FxCopProject Version="10.0" Name="My FxCop Project">
<ProjectOptions>
<SharedProject>True</SharedProject>
<Stylesheet Apply="False">$(FxCopDir)\Xml\FxCopReport.xsl</Stylesheet>
<SaveMessages>
<Project Status="Active, Excluded, Good, Noise" NewOnly="False" />
<Report Status="Active, Good, Noise" NewOnly="False" />
</SaveMessages>
<ProjectFile Compress="True" DefaultTargetCheck="True" DefaultRuleCheck="True" SaveByRuleGroup="" Deterministic="True" />
<EnableMultithreadedLoad>True</EnableMultithreadedLoad>
<EnableMultithreadedAnalysis>True</EnableMultithreadedAnalysis>
<SourceLookup>True</SourceLookup>
<AnalysisExceptionsThreshold>10</AnalysisExceptionsThreshold>
<RuleExceptionsThreshold>1</RuleExceptionsThreshold>
<Spelling Locale="en-US" />
<OverrideRuleVisibilities>False</OverrideRuleVisibilities>
<CustomDictionaries SearchFxCopDir="True" SearchUserProfile="True" SearchProjectDir="True" />
<SearchGlobalAssemblyCache>False</SearchGlobalAssemblyCache>
<DeadlockDetectionTimeout>120</DeadlockDetectionTimeout>
<IgnoreGeneratedCode>False</IgnoreGeneratedCode>
</ProjectOptions>
<Targets>
<Target Name="$(ProjectDir)/ScpDriverInterface/bin/Release/ScpDriverInterface.dll" Analyze="True" AnalyzeAllChildren="True" />
</Targets>
<Rules>
<RuleFiles>
<RuleFile Name="$(FxCopDir)\Rules\DesignRules.dll" Enabled="True" AllRulesEnabled="True" />
<RuleFile Name="$(FxCopDir)\Rules\GlobalizationRules.dll" Enabled="True" AllRulesEnabled="True" />
<RuleFile Name="$(FxCopDir)\Rules\InteroperabilityRules.dll" Enabled="True" AllRulesEnabled="True" />
<RuleFile Name="$(FxCopDir)\Rules\MobilityRules.dll" Enabled="True" AllRulesEnabled="True" />
<RuleFile Name="$(FxCopDir)\Rules\NamingRules.dll" Enabled="True" AllRulesEnabled="True" />
<RuleFile Name="$(FxCopDir)\Rules\PerformanceRules.dll" Enabled="True" AllRulesEnabled="True" />
<RuleFile Name="$(FxCopDir)\Rules\PortabilityRules.dll" Enabled="True" AllRulesEnabled="True" />
<RuleFile Name="$(FxCopDir)\Rules\SecurityRules.dll" Enabled="True" AllRulesEnabled="True" />
<RuleFile Name="$(FxCopDir)\Rules\SecurityTransparencyRules.dll" Enabled="True" AllRulesEnabled="True" />
<RuleFile Name="$(FxCopDir)\Rules\UsageRules.dll" Enabled="True" AllRulesEnabled="True" />
</RuleFiles>
<Groups />
<Settings />
</Rules>
<FxCopReport Version="10.0">
<Namespaces>
<Namespace Name="ScpDriverInterface">
<Messages>
<Message Id="Scp" TypeName="IdentifiersShouldBeSpelledCorrectly" Category="Microsoft.Naming" CheckId="CA1704" Status="Excluded" Created="2016-01-03 06:18:28Z">
<Issue Name="Namespace">
<Item>Scp</Item>
<Item>ScpDriverInterface</Item>
</Issue>
</Message>
</Messages>
</Namespace>
</Namespaces>
<Targets>
<Target Name="$(ProjectDir)/ScpDriverInterface/bin/Release/ScpDriverInterface.dll">
<Modules>
<Module Name="scpdriverinterface.dll">
<Messages>
<Message Id="Scp" TypeName="IdentifiersShouldBeSpelledCorrectly" Category="Microsoft.Naming" CheckId="CA1704" Status="Excluded" Created="2016-01-03 06:26:38Z">
<Issue Name="Assembly">
<Item>Scp</Item>
<Item>'ScpDriverInterface.dll'</Item>
</Issue>
</Message>
</Messages>
<Namespaces>
<Namespace Name="ScpDriverInterface">
<Types>
<Type Name="ScpBus">
<Messages>
<Message Id="Scp" TypeName="IdentifiersShouldBeSpelledCorrectly" Category="Microsoft.Naming" CheckId="CA1704" Status="Excluded" Created="2016-01-03 06:26:38Z">
<Issue Name="Type">
<Item>Scp</Item>
<Item>'ScpBus'</Item>
</Issue>
</Message>
</Messages>
<Members>
<Member Name="#Find(System.Guid,System.String&,System.Int32)">
<Messages>
<Message Id="ScpDriverInterface.NativeMethods.SetupDiDestroyDeviceInfoList(System.IntPtr)" TypeName="DoNotIgnoreMethodResults" Category="Microsoft.Usage" CheckId="CA1806" Status="Excluded" Created="2016-01-03 06:58:09Z">
<Issue Name="HResultOrErrorCode">
<Item>'ScpBus.Find(Guid, ref string, int)'</Item>
<Item>'NativeMethods.SetupDiDestroyDeviceInfoList(IntPtr)'</Item>
</Issue>
</Message>
</Messages>
</Member>
</Members>
</Type>
<Type Name="X360Buttons">
<Members>
<Member Name="#A">
<Messages>
<Message Id="A" TypeName="IdentifiersShouldBeSpelledCorrectly" Category="Microsoft.Naming" CheckId="CA1704" Status="Excluded" Created="2016-01-06 05:48:56Z">
<Issue Name="MemberMoreMeaningfulName">
<Item>'X360Buttons.A'</Item>
</Issue>
</Message>
</Messages>
</Member>
<Member Name="#B">
<Messages>
<Message Id="B" TypeName="IdentifiersShouldBeSpelledCorrectly" Category="Microsoft.Naming" CheckId="CA1704" Status="Excluded" Created="2016-01-06 05:48:56Z">
<Issue Name="MemberMoreMeaningfulName">
<Item>'X360Buttons.B'</Item>
</Issue>
</Message>
</Messages>
</Member>
<Member Name="#X">
<Messages>
<Message Id="X" TypeName="IdentifiersShouldBeSpelledCorrectly" Category="Microsoft.Naming" CheckId="CA1704" Status="Excluded" Created="2016-01-06 05:48:56Z">
<Issue Name="MemberMoreMeaningfulName">
<Item>'X360Buttons.X'</Item>
</Issue>
</Message>
</Messages>
</Member>
<Member Name="#Y">
<Messages>
<Message Id="Y" TypeName="IdentifiersShouldBeSpelledCorrectly" Category="Microsoft.Naming" CheckId="CA1704" Status="Excluded" Created="2016-01-06 05:48:56Z">
<Issue Name="MemberMoreMeaningfulName">
<Item>'X360Buttons.Y'</Item>
</Issue>
</Message>
</Messages>
</Member>
</Members>
</Type>
</Types>
</Namespace>
</Namespaces>
</Module>
</Modules>
</Target>
</Targets>
<Rules>
<Rule TypeName="DoNotIgnoreMethodResults" Category="Microsoft.Usage" CheckId="CA1806">
<Resolution Name="HResultOrErrorCode">{0} calls {1} but does not use the HRESULT or error code that the method returns. This could lead to unexpected behavior in error conditions or low-resource situations. Use the result in a conditional statement, assign the result to a variable, or pass it as an argument to another method.</Resolution>
</Rule>
<Rule TypeName="IdentifiersShouldBeSpelledCorrectly" Category="Microsoft.Naming" CheckId="CA1704">
<Resolution Name="Assembly">Correct the spelling of '{0}' in assembly name {1}.</Resolution>
<Resolution Name="MemberMoreMeaningfulName">Consider providing a more meaningful name than member name {0}.</Resolution>
<Resolution Name="Namespace">Correct the spelling of '{0}' in namespace name '{1}'.</Resolution>
<Resolution Name="Type">Correct the spelling of '{0}' in type name {1}.</Resolution>
</Rule>
</Rules>
</FxCopReport>
</FxCopProject>