diff --git a/Settings.StyleCop b/Settings.StyleCop new file mode 100644 index 00000000000..ddb984633ae --- /dev/null +++ b/Settings.StyleCop @@ -0,0 +1,34 @@ + + + + + + + False + + + + + False + + + + + + + + + + False + + + + + False + + + + + + + diff --git a/stylecop.json b/stylecop.json new file mode 100644 index 00000000000..aec3dca80d6 --- /dev/null +++ b/stylecop.json @@ -0,0 +1,52 @@ +{ + "$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" + } + } +}