diff options
author | Vitek Karas <vitek.karas@microsoft.com> | 2021-03-11 15:37:47 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-11 15:37:47 +0300 |
commit | db52b51e8fbdefb8ddfa076dbb40edc55af47c42 (patch) | |
tree | 664581847f199e3592b4eda0f8bad5ac98669532 /lint.cmd | |
parent | bb923d296a0aa9afa499ffe29dcf71e66ee54352 (diff) |
Fix lint to avoid generating binlog file (#1879)
Latest lint writes formatDiagnosticLog.binlong next to the solution file when running with --verbosity diagnostic. There's no way to redirect or disable this - https://github.com/dotnet/format/issues/1041.
So this change disables --verbosity diagnostic for local runs of lint and adds it only to the CI (where the machine will clean the enlistment anyway).
Diffstat (limited to 'lint.cmd')
-rw-r--r-- | lint.cmd | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1,3 +1,3 @@ @echo off powershell -ExecutionPolicy ByPass -NoProfile -command "Set-Location %~dp0; & """%~dp0eng\dotnet.ps1""" ""tool restore""" -powershell -ExecutionPolicy ByPass -NoProfile -command "Set-Location %~dp0; & """%~dp0eng\dotnet.ps1""" ""tool run dotnet-format -- illink.sln --verbosity diagnostic --fix-whitespace --exclude src/analyzer src/tuner external %*""" +powershell -ExecutionPolicy ByPass -NoProfile -command "Set-Location %~dp0; & """%~dp0eng\dotnet.ps1""" ""tool run dotnet-format -- illink.sln --fix-whitespace --exclude src/analyzer src/tuner external %*""" |