Reformat editorconfig

- Group style rules with their associated options in a way that matches the documentation. This makes it easier to pair rules and their options.
- Remove OpenRA.ruleset and move all rules into .editorconfig file.
- Centralise IDE0005 workaround in Directory.Build.props file.
This commit is contained in:
RoosterDragon
2023-03-05 12:35:50 +00:00
committed by abcdefg30
parent 721c03d9af
commit 88ba974ea5
5 changed files with 527 additions and 310 deletions

View File

@@ -114,8 +114,9 @@ function Check-Command
{
Write-Host "Compiling in Debug configuration..." -ForegroundColor Cyan
# Enabling EnforceCodeStyleInBuild and GenerateDocumentationFile as a workaround for some code style rules (in particular IDE0005) being bugged and not reporting warnings/errors otherwise.
dotnet build -c Debug --nologo -warnaserror -p:TargetPlatform=win-x64 -p:EnforceCodeStyleInBuild=true -p:GenerateDocumentationFile=true
dotnet clean -c Debug --nologo --verbosity minimal
dotnet build -c Debug --nologo -warnaserror -p:TargetPlatform=win-x64
if ($lastexitcode -ne 0)
{
Write-Host "Build failed." -ForegroundColor Red