From 060fb5f13cd4842c6655a6286ad2c76b3c1e1349 Mon Sep 17 00:00:00 2001 From: Bond_009 Date: Wed, 23 Nov 2022 16:56:41 +0100 Subject: [PATCH] Add stylecop.json file --- .gitignore | 1 - Directory.Build.props | 1 + stylecop.json | 9 +++++++++ 3 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 stylecop.json diff --git a/.gitignore b/.gitignore index 9e9fae7bfc..fd8e1f314b 100644 --- a/.gitignore +++ b/.gitignore @@ -164,7 +164,6 @@ AppPackages/ sql/ *.Cache ClientBin/ -[Ss]tyle[Cc]op.* ~$* *~ *.dbmdl diff --git a/Directory.Build.props b/Directory.Build.props index efcfb72243..f812f44190 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -16,6 +16,7 @@ + diff --git a/stylecop.json b/stylecop.json new file mode 100644 index 0000000000..6da4bf51df --- /dev/null +++ b/stylecop.json @@ -0,0 +1,9 @@ +{ + "$schema": "https://raw.githubusercontent.com/DotNetAnalyzers/StyleCopAnalyzers/master/StyleCop.Analyzers/StyleCop.Analyzers/Settings/stylecop.schema.json", + "settings": { + "layoutRules": { + "newlineAtEndOfFile": "require", + "allowDoWhileOnClosingBrace": true + } + } +}