From d54cbfb412ae60e9e3c31ade447fb881459b30fc Mon Sep 17 00:00:00 2001 From: Wraith2 Date: Sat, 9 Oct 2021 00:56:54 +0100 Subject: [PATCH 1/3] suppress new() fixer in main library projects --- src/Microsoft.Data.SqlClient/netcore/src/.editorconfig | 9 +++++++++ src/Microsoft.Data.SqlClient/netfx/src/.editorconfig | 9 +++++++++ 2 files changed, 18 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..0dfaab200d --- /dev/null +++ b/src/Microsoft.Data.SqlClient/netcore/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 \ No newline at end of file diff --git a/src/Microsoft.Data.SqlClient/netfx/src/.editorconfig b/src/Microsoft.Data.SqlClient/netfx/src/.editorconfig new file mode 100644 index 0000000000..0dfaab200d --- /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 \ No newline at end of file From c27f23a13eaad1038a8b0d25a4d48bf4f31558d2 Mon Sep 17 00:00:00 2001 From: Wraith2 Date: Thu, 14 Oct 2021 21:02:41 +0100 Subject: [PATCH 2/3] add simple using statement suppression --- src/Microsoft.Data.SqlClient/netcore/src/.editorconfig | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Microsoft.Data.SqlClient/netcore/src/.editorconfig b/src/Microsoft.Data.SqlClient/netcore/src/.editorconfig index 0dfaab200d..ecc808aa66 100644 --- a/src/Microsoft.Data.SqlClient/netcore/src/.editorconfig +++ b/src/Microsoft.Data.SqlClient/netcore/src/.editorconfig @@ -6,4 +6,7 @@ root = false [*.cs] # IDE0090: Use 'new(...)' -csharp_style_implicit_object_creation_when_type_is_apparent = false \ No newline at end of file +csharp_style_implicit_object_creation_when_type_is_apparent = false + +# IDE0063: Use simple 'using' statement +csharp_prefer_simple_using_statement = false From 438341392d18aa58e3e6450debe24caaf2eb052a Mon Sep 17 00:00:00 2001 From: Wraith2 Date: Sat, 18 Dec 2021 22:37:05 +0000 Subject: [PATCH 3/3] add line bteak --- src/Microsoft.Data.SqlClient/netfx/src/.editorconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Microsoft.Data.SqlClient/netfx/src/.editorconfig b/src/Microsoft.Data.SqlClient/netfx/src/.editorconfig index 0dfaab200d..f3238bb87b 100644 --- a/src/Microsoft.Data.SqlClient/netfx/src/.editorconfig +++ b/src/Microsoft.Data.SqlClient/netfx/src/.editorconfig @@ -6,4 +6,4 @@ root = false [*.cs] # IDE0090: Use 'new(...)' -csharp_style_implicit_object_creation_when_type_is_apparent = false \ No newline at end of file +csharp_style_implicit_object_creation_when_type_is_apparent = false