Style: Unify formatting, add .editorconfig (#88)

This commit is contained in:
Thaddeus Crews
2024-07-28 16:28:09 -05:00
committed by GitHub
parent 375cec369a
commit b8827a41b2
12 changed files with 364 additions and 310 deletions

23
.editorconfig Normal file
View File

@@ -0,0 +1,23 @@
root = true
[*]
charset = utf-8
end_of_line = lf
indent_size = 4
indent_style = tab
insert_final_newline = true
trim_trailing_whitespace = true
[*.{csproj,sln}]
charset = utf-8-bom
end_of_line = crlf
[*.{cs,py}]
indent_style = space
[*.{csproj,yml,yaml}]
indent_size = 2
indent_style = space
[*.md]
trim_trailing_whitespace = false

7
.gitattributes vendored
View File

@@ -1 +1,8 @@
# Properly detect languages on Github
web/static/thirdparty/* linguist-vendored
# Normalize EOL for all files that Git considers text files
* text=auto eol=lf
# Except for Visual Studio files
*.sln eol=crlf
*.csproj eol=crlf

32
.gitignore vendored
View File

@@ -16,5 +16,35 @@ mono_crash.*.json
.directory
*~
# IDE-specific ignores
.fleet/
.history/
.idea/
.vs/
.vscode/
*.code-workspace
# Python-specific ignores
__pycache__/
*_cache/
*.pyc
.venv
venv
# Godot Git repository clone (run-benchmarks.sh)
/godot/
godot/
# Output HTML files
web/public/
# Temporary lock file while building
web/.hugo_build.lock
# Generated files
web/content/benchmark/*.md
web/content/graph/*.md
web/data/data.json
# Untracked source files
web/src-data/benchmarks/*.json
web/src-data/benchmarks/*.md

View File

@@ -1,4 +1,4 @@
<Project Sdk="Godot.NET.Sdk/4.3.0-dev.2">
<Project Sdk="Godot.NET.Sdk/4.3.0-dev.2">
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework Condition=" '$(GodotTargetPlatform)' == 'android' ">net7.0</TargetFramework>

View File

@@ -1,5 +1,8 @@
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2012

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.10.35027.167
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Godot Benchmarks", "Godot Benchmarks.csproj", "{A7FD1DC6-AE2B-4F17-B4BA-2FD940E01B47}"
EndProject
Global
@@ -16,4 +19,10 @@ Global
{A7FD1DC6-AE2B-4F17-B4BA-2FD940E01B47}.ExportRelease|Any CPU.ActiveCfg = ExportRelease|Any CPU
{A7FD1DC6-AE2B-4F17-B4BA-2FD940E01B47}.ExportRelease|Any CPU.Build.0 = ExportRelease|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {0C32B76F-38AD-4A1A-80F4-46FFBBB4BFB2}
EndGlobalSection
EndGlobal

1
web/.gitattributes vendored
View File

@@ -1 +0,0 @@
static/thirdparty/* linguist-vendored

14
web/.gitignore vendored
View File

@@ -1,14 +0,0 @@
# Output HTML files
public/
# Temporary lock file while building
.hugo_build.lock
# Generated files
content/benchmark/*.md
content/graph/*.md
data/data.json
# Untracked source files
src-data/benchmarks/*.md
src-data/benchmarks/*.json