|
94 | 94 | </Namespace>
|
95 | 95 | <Namespace Name="CommandLine.Internal">
|
96 | 96 | <Types>
|
97 |
| - <Type Name="Assumes"> |
98 |
| - <Members> |
99 |
| - <Member Name="#NotNullOrEmpty(System.String,System.String,System.String)"> |
100 |
| - <Messages> |
101 |
| - <Message TypeName="AvoidUncalledPrivateCode" Category="Microsoft.Performance" CheckId="CA1811" Created="2013-01-20 13:57:34Z"> |
102 |
| - <Issue> |
103 |
| - <Item>'Assumes.NotNullOrEmpty(string, string, string)'</Item> |
104 |
| - </Issue> |
105 |
| - </Message> |
106 |
| - </Messages> |
107 |
| - </Member> |
108 |
| - <Member Name="#NotZeroLength`1(!!0[],System.String,System.String)"> |
109 |
| - <Messages> |
110 |
| - <Message TypeName="AvoidUncalledPrivateCode" Category="Microsoft.Performance" CheckId="CA1811" Created="2013-01-20 13:57:34Z"> |
111 |
| - <Issue> |
112 |
| - <Item>'Assumes.NotZeroLength<T>(T[], string, string)'</Item> |
113 |
| - </Issue> |
114 |
| - </Message> |
115 |
| - </Messages> |
116 |
| - </Member> |
117 |
| - </Members> |
118 |
| - </Type> |
119 |
| - <Type Name="OneCharStringEnumerator"> |
120 |
| - <Members> |
121 |
| - <Member Name="#Reset()"> |
122 |
| - <Messages> |
123 |
| - <Message TypeName="AvoidUncalledPrivateCode" Category="Microsoft.Performance" CheckId="CA1811" Created="2013-01-20 13:57:34Z"> |
124 |
| - <Issue> |
125 |
| - <Item>'OneCharStringEnumerator.Reset()'</Item> |
126 |
| - </Issue> |
127 |
| - </Message> |
128 |
| - </Messages> |
129 |
| - </Member> |
130 |
| - </Members> |
131 |
| - </Type> |
132 | 97 | <Type Name="OptionInfo">
|
133 | 98 | <Members>
|
134 |
| - <Member Name="#HelpText"> |
135 |
| - <Accessors> |
136 |
| - <Accessor Name="#get_HelpText()"> |
137 |
| - <Messages> |
138 |
| - <Message TypeName="AvoidUncalledPrivateCode" Category="Microsoft.Performance" CheckId="CA1811" Created="2013-01-20 13:57:34Z"> |
139 |
| - <Issue> |
140 |
| - <Item>'OptionInfo.HelpText.get()'</Item> |
141 |
| - </Issue> |
142 |
| - </Message> |
143 |
| - </Messages> |
144 |
| - </Accessor> |
145 |
| - </Accessors> |
146 |
| - </Member> |
147 |
| - <Member Name="#NameWithSwitch"> |
148 |
| - <Accessors> |
149 |
| - <Accessor Name="#get_NameWithSwitch()"> |
150 |
| - <Messages> |
151 |
| - <Message TypeName="AvoidUncalledPrivateCode" Category="Microsoft.Performance" CheckId="CA1811" Created="2013-01-20 13:57:34Z"> |
152 |
| - <Issue> |
153 |
| - <Item>'OptionInfo.NameWithSwitch.get()'</Item> |
154 |
| - </Issue> |
155 |
| - </Message> |
156 |
| - </Messages> |
157 |
| - </Accessor> |
158 |
| - </Accessors> |
159 |
| - </Member> |
160 | 99 | <Member Name="#SetNullableValue(System.String,System.Object)">
|
161 | 100 | <Messages>
|
162 | 101 | <Message TypeName="DoNotCatchGeneralExceptionTypes" Category="Microsoft.Design" CheckId="CA1031" Status="Excluded" Created="2013-01-20 13:57:34Z">
|
|
174 | 113 | </Member>
|
175 | 114 | </Members>
|
176 | 115 | </Type>
|
177 |
| - <Type Name="StringArrayEnumerator"> |
178 |
| - <Members> |
179 |
| - <Member Name="#Reset()"> |
180 |
| - <Messages> |
181 |
| - <Message TypeName="AvoidUncalledPrivateCode" Category="Microsoft.Performance" CheckId="CA1811" Created="2013-01-20 13:57:34Z"> |
182 |
| - <Issue> |
183 |
| - <Item>'StringArrayEnumerator.Reset()'</Item> |
184 |
| - </Issue> |
185 |
| - </Message> |
186 |
| - </Messages> |
187 |
| - </Member> |
188 |
| - </Members> |
189 |
| - </Type> |
190 | 116 | </Types>
|
191 | 117 | </Namespace>
|
192 | 118 | <Namespace Name="CommandLine.Text">
|
|
221 | 147 | </Type>
|
222 | 148 | </Types>
|
223 | 149 | </Namespace>
|
| 150 | + <Namespace Name="CommandLine.Utils"> |
| 151 | + <Types> |
| 152 | + <Type Name="ReflectionCache"> |
| 153 | + <Members> |
| 154 | + <Member Name="#.cctor()"> |
| 155 | + <Messages> |
| 156 | + <Message TypeName="InitializeReferenceTypeStaticFieldsInline" Category="Microsoft.Performance" CheckId="CA1810" Status="Excluded" Created="2013-01-24 13:11:50Z"> |
| 157 | + <Issue> |
| 158 | + <Item>'ReflectionCache'</Item> |
| 159 | + </Issue> |
| 160 | + <Notes> |
| 161 | + <User Name="vmuser"> |
| 162 | + <Note Id="3" /> |
| 163 | + <Note Id="4" /> |
| 164 | + </User> |
| 165 | + </Notes> |
| 166 | + </Message> |
| 167 | + </Messages> |
| 168 | + </Member> |
| 169 | + </Members> |
| 170 | + </Type> |
| 171 | + </Types> |
| 172 | + </Namespace> |
224 | 173 | </Namespaces>
|
225 | 174 | </Module>
|
226 | 175 | </Modules>
|
|
231 | 180 | <Note Id="0" Modified="2013-01-20 14:49:13Z">The char Separator property matches shortName char constructor argument because the ShortName property is defined in BaseOptionAttribute as nullable char.</Note>
|
232 | 181 | <Note Id="1" Modified="2013-01-20 16:14:59Z">FormatException (thrown by ConvertFromString) is thrown as Exception.InnerException, so we've to catch directly System.Exception.</Note>
|
233 | 182 | <Note Id="2" Modified="2013-01-22 20:28:56Z">The constructor that accepts a boolean is designed to support default singleton, the parameter is ignored.</Note>
|
| 183 | + <Note Id="3" Modified="2013-01-24 13:17:29Z">Singleton, by design.</Note> |
| 184 | + <Note Id="4" Modified="2013-01-24 13:22:57Z">Singleton, by design.</Note> |
234 | 185 | </User>
|
235 | 186 | </Notes>
|
236 | 187 | <Rules>
|
237 | 188 | <Rule TypeName="AvoidOutParameters" Category="Microsoft.Design" CheckId="CA1021">
|
238 | 189 | <Resolution Name="Default">Consider a design that does not require that {0} be an out parameter.</Resolution>
|
239 | 190 | </Rule>
|
240 |
| - <Rule TypeName="AvoidUncalledPrivateCode" Category="Microsoft.Performance" CheckId="CA1811"> |
241 |
| - <Resolution Name="Default">{0} appears to have no upstream public or protected callers.</Resolution> |
242 |
| - </Rule> |
243 | 191 | <Rule TypeName="DefineAccessorsForAttributeArguments" Category="Microsoft.Design" CheckId="CA1019">
|
244 | 192 | <Resolution Name="RemoveSetter">Remove the property setter from {0} or reduce its accessibility because it corresponds to positional argument {1}.</Resolution>
|
245 | 193 | </Rule>
|
|
249 | 197 | <Rule TypeName="DoNotCatchGeneralExceptionTypes" Category="Microsoft.Design" CheckId="CA1031">
|
250 | 198 | <Resolution Name="Default">Modify {0} to catch a more specific exception than {1} or rethrow the exception.</Resolution>
|
251 | 199 | </Rule>
|
| 200 | + <Rule TypeName="InitializeReferenceTypeStaticFieldsInline" Category="Microsoft.Performance" CheckId="CA1810"> |
| 201 | + <Resolution Name="Default">Initialize all static fields in {0} when those fields are declared and remove the explicit static constructor.</Resolution> |
| 202 | + </Rule> |
252 | 203 | <Rule TypeName="ReviewUnusedParameters" Category="Microsoft.Usage" CheckId="CA1801">
|
253 | 204 | <Resolution Name="Default">Parameter {0} of {1} is never used. Remove the parameter or use it in the method body.</Resolution>
|
254 | 205 | </Rule>
|
|
0 commit comments