From 92cc3fd7cba939bfc53e7ac89ed1597a5f76b6ac Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Fri, 21 Nov 2025 08:52:02 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E5=A2=9E=E5=8A=A0=20editorconfig=20?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- binding/csharp/.editorconfig | 26 ++++++++++++++++++++++++++ binding/csharp/IP2Region.Net.slnx | 1 + 2 files changed, 27 insertions(+) create mode 100644 binding/csharp/.editorconfig diff --git a/binding/csharp/.editorconfig b/binding/csharp/.editorconfig new file mode 100644 index 0000000..b53f6cb --- /dev/null +++ b/binding/csharp/.editorconfig @@ -0,0 +1,26 @@ +root = true + +# To learn more about .editorconfig see https://aka.ms/editorconfigdocs +[*] +charset = utf-8 +indent_style = space +trim_trailing_whitespace = true +insert_final_newline = true +spelling_exclusion_path = .\exclusion.dic + +[*.csproj] +charset = utf-8 +insert_final_newline = true + +[*.{xml,config,csproj,nuspec,props,resx,targets,yml,tasks,json}] +indent_size = 2 + +[*.sh] +end_of_line = lf + +[*.cs] +dotnet_analyzer_diagnostic.category-Style.severity = none +csharp_style_namespace_declarations = file_scoped:silent + +[*.cs] +file_header_template = Copyright 2023 The Ip2Region Authors. All rights reserved.\nUse of this source code is governed by a Apache2.0-style\nlicense that can be found in the LICENSE file.\n@Author Alan \n@Date 2023/07/25\nUpdated by Argo Zhang at 2025/11/21 diff --git a/binding/csharp/IP2Region.Net.slnx b/binding/csharp/IP2Region.Net.slnx index 559f5de..1dc947d 100644 --- a/binding/csharp/IP2Region.Net.slnx +++ b/binding/csharp/IP2Region.Net.slnx @@ -1,5 +1,6 @@ +