chore: 增加 editorconfig 配置文件
This commit is contained in:
parent
f1d0e1bee0
commit
92cc3fd7cb
|
|
@ -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 <lzh.shap@gmail.com>\n@Date 2023/07/25\nUpdated by Argo Zhang <argo@live.ca> at 2025/11/21
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
<Solution>
|
<Solution>
|
||||||
<Folder Name="/Solution Items/">
|
<Folder Name="/Solution Items/">
|
||||||
|
<File Path=".editorconfig" />
|
||||||
<File Path="README.md" />
|
<File Path="README.md" />
|
||||||
</Folder>
|
</Folder>
|
||||||
<Project Path="IP2Region.Net.BenchMark/IP2Region.Net.BenchMark.csproj" />
|
<Project Path="IP2Region.Net.BenchMark/IP2Region.Net.BenchMark.csproj" />
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue