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:
5
make.ps1
5
make.ps1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user