Skip to content

Commit 6118c37

Browse files
iSazonovTravisEz13
authored andcommitted
Fix stylecop hungarian (PowerShell#9281)
Add very popular "is" and "_is" prefixes.
1 parent b927c46 commit 6118c37

File tree

2 files changed

+31
-2
lines changed

2 files changed

+31
-2
lines changed

Settings.StyleCop

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,36 @@
127127
</RuleSettings>
128128
</Rule>
129129
</Rules>
130-
<AnalyzerSettings />
130+
<AnalyzerSettings>
131+
<CollectionProperty Name="Hungarian">
132+
<Value>as</Value>
133+
<Value>at</Value>
134+
<Value>by</Value>
135+
<Value>do</Value>
136+
<Value>go</Value>
137+
<Value>if</Value>
138+
<Value>in</Value>
139+
<Value>is</Value>
140+
<Value>it</Value>
141+
<Value>no</Value>
142+
<Value>of</Value>
143+
<Value>on</Value>
144+
<Value>or</Value>
145+
<Value>to</Value>
146+
<Value>n</Value>
147+
<Value>r</Value>
148+
<Value>l</Value>
149+
<Value>i</Value>
150+
<Value>io</Value>
151+
<Value>fs</Value>
152+
<Value>lp</Value>
153+
<Value>dw</Value>
154+
<Value>h</Value>
155+
<Value>rs</Value>
156+
<Value>ps</Value>
157+
<Value>op</Value>
158+
</CollectionProperty>
159+
</AnalyzerSettings>
131160
</Analyzer>
132161
<Analyzer AnalyzerId="StyleCop.CSharp.OrderingRules">
133162
<Rules>

stylecop.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
},
2626
"namingRules" : {
2727
"allowCommonHungarianPrefixes" : true,
28-
"allowedHungarianPrefixes" : [ "n", "r", "l", "i", "io", "fs", "lp", "dw", "h", "rs", "ps", "op" ]
28+
"allowedHungarianPrefixes" : [ "n", "r", "l", "i", "io", "is", "fs", "lp", "dw", "h", "rs", "ps", "op" ]
2929
},
3030
"maintainabilityRules" : {
3131
"topLevelTypes" : [

0 commit comments

Comments
 (0)