From 4c925f58b80893690532c26788a913fdd35fdb70 Mon Sep 17 00:00:00 2001 From: iSazonov Date: Thu, 24 May 2018 14:48:04 +0500 Subject: [PATCH 1/5] Add Settings.StyleCop file Disable SA1402 and SA1403 rules. --- Settings.StyleCop | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 Settings.StyleCop diff --git a/Settings.StyleCop b/Settings.StyleCop new file mode 100644 index 00000000000..3dfd525fe8a --- /dev/null +++ b/Settings.StyleCop @@ -0,0 +1,19 @@ + + + + + + + False + + + + + False + + + + + + + From 90651f8cf141b94f9bf848ad88e1d68212e66560 Mon Sep 17 00:00:00 2001 From: iSazonov Date: Thu, 24 May 2018 15:11:32 +0500 Subject: [PATCH 2/5] Disable SA1200 rule in StyleCop --- Settings.StyleCop | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Settings.StyleCop b/Settings.StyleCop index 3dfd525fe8a..2cb3c124594 100644 --- a/Settings.StyleCop +++ b/Settings.StyleCop @@ -15,5 +15,15 @@ + + + + + False + + + + + From d6348034b4298e78e2e48d0e7886169588d1e3a9 Mon Sep 17 00:00:00 2001 From: iSazonov Date: Fri, 25 May 2018 18:14:55 +0500 Subject: [PATCH 3/5] Add stylecop.json --- stylecop.json | 52 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 stylecop.json 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" + } + } +} From 9231f94348d48681802ebd170649cfeb673eb235 Mon Sep 17 00:00:00 2001 From: iSazonov Date: Fri, 25 May 2018 18:15:35 +0500 Subject: [PATCH 4/5] Reset SA1200 to default --- Settings.StyleCop | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/Settings.StyleCop b/Settings.StyleCop index 2cb3c124594..3dfd525fe8a 100644 --- a/Settings.StyleCop +++ b/Settings.StyleCop @@ -15,15 +15,5 @@ - - - - - False - - - - - From bf55ee4f979e529bedce17a1985618b18cb787b3 Mon Sep 17 00:00:00 2001 From: iSazonov Date: Wed, 30 May 2018 09:00:30 +0500 Subject: [PATCH 5/5] Disable SA1101 PrefixLocalCallsWithThis and SA1126 PrefixCallsCorrectly --- Settings.StyleCop | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/Settings.StyleCop b/Settings.StyleCop index 3dfd525fe8a..ddb984633ae 100644 --- a/Settings.StyleCop +++ b/Settings.StyleCop @@ -15,5 +15,20 @@ + + + + + False + + + + + False + + + + +