PowerShell7/stylecop.json
Ilya d67d87caf0
Add Settings.StyleCop file (#6930)
Disable:
1.SA1402 FileMayOnlyContainASingleType
2.SA1403 FileMayOnlyContainASingleNamespace
3.SA1101 PrefixLocalCallsWithThis
4.SA1126 PrefixCallsCorrectly

Add custom global config file stylecop.json
2018-06-04 10:41:10 +05:00

53 lines
1.7 KiB
JSON

{
"$schema" : "https://raw.githubusercontent.com/DotNetAnalyzers/StyleCopAnalyzers/master/StyleCop.Analyzers/StyleCop.Analyzers/Settings/stylecop.schema.json",
"settings" : {
"indentation" : {
"indentationSize" : 4,
"tabSize" : 4,
"useTabs" : false
},
"spacingRules" : {
},
"readabilityRules" : {
"allowBuiltInTypeAliases" : true
},
"orderingRules" : {
"elementOrder" : [
"kind",
"constant",
"accessibility",
"static",
"readonly"
],
"systemUsingDirectivesFirst" : true,
"usingDirectivesPlacement" : "outsideNamespace",
"blankLinesBetweenUsingGroups" : "allow"
},
"namingRules" : {
"allowCommonHungarianPrefixes" : true,
"allowedHungarianPrefixes" : [ "c", "r" ]
},
"maintainabilityRules" : {
"topLevelTypes" : [
"class",
"interface"
]
},
"layoutRules" : {
"newlineAtEndOfFile" : "require",
"allowConsecutiveUsings" : false
},
"documentationRules" : {
"copyrightText" : "Copyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the MIT License.",
"xmlHeader" : false,
"documentInterfaces" : true,
"documentExposedElements" : true,
"documentInternalElements" : false,
"documentPrivateElements" : false,
"documentPrivateFields" : false,
"documentationCulture" : "en-US",
"fileNamingConvention" : "stylecop"
}
}
}