Fix stylecop hungarian (#9281)

Add very popular "is" and "_is" prefixes.
This commit is contained in:
Ilya 2019-04-05 22:56:21 +05:00 committed by Travis Plunk
parent b927c46eb4
commit 6118c37ce3
2 changed files with 31 additions and 2 deletions

View file

@ -127,7 +127,36 @@
</RuleSettings>
</Rule>
</Rules>
<AnalyzerSettings />
<AnalyzerSettings>
<CollectionProperty Name="Hungarian">
<Value>as</Value>
<Value>at</Value>
<Value>by</Value>
<Value>do</Value>
<Value>go</Value>
<Value>if</Value>
<Value>in</Value>
<Value>is</Value>
<Value>it</Value>
<Value>no</Value>
<Value>of</Value>
<Value>on</Value>
<Value>or</Value>
<Value>to</Value>
<Value>n</Value>
<Value>r</Value>
<Value>l</Value>
<Value>i</Value>
<Value>io</Value>
<Value>fs</Value>
<Value>lp</Value>
<Value>dw</Value>
<Value>h</Value>
<Value>rs</Value>
<Value>ps</Value>
<Value>op</Value>
</CollectionProperty>
</AnalyzerSettings>
</Analyzer>
<Analyzer AnalyzerId="StyleCop.CSharp.OrderingRules">
<Rules>

View file

@ -25,7 +25,7 @@
},
"namingRules" : {
"allowCommonHungarianPrefixes" : true,
"allowedHungarianPrefixes" : [ "n", "r", "l", "i", "io", "fs", "lp", "dw", "h", "rs", "ps", "op" ]
"allowedHungarianPrefixes" : [ "n", "r", "l", "i", "io", "is", "fs", "lp", "dw", "h", "rs", "ps", "op" ]
},
"maintainabilityRules" : {
"topLevelTypes" : [