Skip to content

Commit 7c42f4a

Browse files
committed
Update stylecop.schema.json to include topLevelTypes configuration property
1 parent 02ea811 commit 7c42f4a

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

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

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,24 @@
120120
"description": "Configuration for ordering rules (SA1400-)",
121121
"additionalProperties": false,
122122
"properties": {
123+
"topLevelTypes": {
124+
"type": "array",
125+
"description": "The set of type kinds which must be placed in separate files according to the type name.",
126+
"default": [
127+
"class"
128+
],
129+
"items": {
130+
"type": "string",
131+
"enum": [
132+
"class",
133+
"interface",
134+
"struct",
135+
"delegate",
136+
"enum"
137+
]
138+
},
139+
"uniqueItems": true
140+
}
123141
}
124142
},
125143
"layoutRules": {

0 commit comments

Comments
 (0)