feat(*): Add stylecop for better linting

This commit is contained in:
Josh Creek
2021-08-29 22:48:51 +01:00
parent 803d0ec1f5
commit 2739a6e642
3 changed files with 77 additions and 0 deletions
+52
View File
@@ -0,0 +1,52 @@
{
// ACTION REQUIRED: This file was automatically added to your project, but it
// will not take effect until additional steps are taken to enable it. See the
// following page for additional information:
//
// https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/EnableConfiguration.md
"": null,
"$schema": "https://raw.githubusercontent.com/DotNetAnalyzers/StyleCopAnalyzers/master/StyleCop.Analyzers/StyleCop.Analyzers/Settings/stylecop.schema.json",
"settings": {
"documentationRules": {
"companyName": "Creek",
"documentationCulture": "en-GB",
"documentInterfaces": true,
"documentExposedElements": true,
"documentInternalElements": true,
"documentPrivateElements": true,
"documentPrivateFields": false,
"headerDecoration": "-----------------------------------------------------------------------",
"xmlHeader": true
},
"layoutRules": {
"allowConsecutiveUsings": true,
"newlineAtEndOfFile": "require"
},
"maintainabilityRules": {
"topLevelTypes": [
"class",
"interface"
]
},
"namingRules": {
"allowCommonHungarianPrefixes": true,
"includeInferredTupleElementNames": true,
"tupleElementNameCasing": "PascalCase"
},
"orderingRules": {
"elementOrder": [
"kind",
"constant",
"accessibility",
"static",
"readonly"
],
"blankLinesBetweenUsingGroups": "omit",
"usingDirectivesPlacement": "outsideNamespace",
"systemUsingDirectivesFirst": true
},
"readabilityRules": {
"allowBuiltInTypeAliases": true
}
}
}