💄 Basic styling guide for stylecop

This commit is contained in:
2025-11-05 16:05:49 +02:00
parent c12a3a8d5a
commit 0e65386326

47
stylecop.json Normal file
View File

@@ -0,0 +1,47 @@
{
"$schema": "https://raw.githubusercontent.com/bjornhellander/NewStyleCopAnalyzers/refs/heads/master/StyleCop.Analyzers/StyleCop.Analyzers/Settings/stylecop.schema.json",
"settings": {
"indentation": {
"useTabs": false,
"indentationSize": 2
},
"orderingRules": {
"usingDirectivesPlacement": "outsideNamespace",
"systemUsingDirectivesFirst": true,
"blankLinesBetweenUsingGroups": "require",
"elementOrder": [
"kind",
"accessibility",
"constant",
"static",
"readonly"
]
},
"maintainabilityRules": {
"topLevelTypes": [
"class",
"interface",
"struct",
"enum"
]
},
"namingRules": {
"allowCommonHungarianPrefixes": false,
"includeInferredTupleElementNames": true,
"tupleElementNameCasing": "PascalCase"
},
"layoutRules": {
"newlineAtEndOfFile": "require",
"allowConsecutiveUsings": false,
"allowDoWhileOnClosingBrace": true
},
"readabilityRules": {
"allowBuiltInTypeAliases": false
},
"documentationRules": {
"documentExposedElements": true,
"documentationCulture": "en-US",
"documentInterfaces": true
}
}
}