Skip to content

Commit 5030435

Browse files
committed
Add Hungarian rules to StyleCop JSON schema
1 parent 6b038b4 commit 5030435

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

StyleCop.Analyzers/StyleCop.Analyzers/Settings/stylecop.schema.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,26 @@
6464
"default": true
6565
}
6666
}
67+
},
68+
"namingRules": {
69+
"type": "object",
70+
"description": "Configuration for naming rules (SA1300-)",
71+
"properties": {
72+
"allowCommonHungarianPrefixes": {
73+
"type": "boolean",
74+
"description": "Determines whether common Hungarian notation prefixes should be allowed.",
75+
"default": true
76+
},
77+
"allowedHungarianPrefixes": {
78+
"type": "array",
79+
"description": "Allowed Hungarian notation prefixes.",
80+
"default": [ ],
81+
"items": {
82+
"type": "string",
83+
"uniqueItems": true
84+
}
85+
}
86+
}
6787
}
6888
}
6989
}

0 commit comments

Comments
 (0)