From d4f69fdc1b302a4039a618ae61538a4f98be3b0b Mon Sep 17 00:00:00 2001 From: Wraith Date: Mon, 20 Dec 2021 18:56:52 +0000 Subject: [PATCH] Style: Suppress new() and using fixers in main library projects (#1330) --- .../netcore/src/.editorconfig | 12 ++++++++++++ src/Microsoft.Data.SqlClient/netfx/src/.editorconfig | 9 +++++++++ 2 files changed, 21 insertions(+) create mode 100644 src/Microsoft.Data.SqlClient/netcore/src/.editorconfig create mode 100644 src/Microsoft.Data.SqlClient/netfx/src/.editorconfig diff --git a/src/Microsoft.Data.SqlClient/netcore/src/.editorconfig b/src/Microsoft.Data.SqlClient/netcore/src/.editorconfig new file mode 100644 index 0000000000..ecc808aa66 --- /dev/null +++ b/src/Microsoft.Data.SqlClient/netcore/src/.editorconfig @@ -0,0 +1,12 @@ +# editorconfig.org + +# top-most EditorConfig file +root = false + +[*.cs] + +# IDE0090: Use 'new(...)' +csharp_style_implicit_object_creation_when_type_is_apparent = false + +# IDE0063: Use simple 'using' statement +csharp_prefer_simple_using_statement = false diff --git a/src/Microsoft.Data.SqlClient/netfx/src/.editorconfig b/src/Microsoft.Data.SqlClient/netfx/src/.editorconfig new file mode 100644 index 0000000000..f3238bb87b --- /dev/null +++ b/src/Microsoft.Data.SqlClient/netfx/src/.editorconfig @@ -0,0 +1,9 @@ +# editorconfig.org + +# top-most EditorConfig file +root = false + +[*.cs] + +# IDE0090: Use 'new(...)' +csharp_style_implicit_object_creation_when_type_is_apparent = false