forked from dotnet/roslynator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cli_fix.ps1
24 lines (21 loc) · 1.73 KB
/
cli_fix.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#dotnet tool install -g roslynator.dotnet.cli
#Install-Module VSSetup -Scope CurrentUser
$visualStudioPath = Get-VSSetupInstance -All | Select-VSSetupInstance -Require 'Microsoft.VisualStudio.Workload.ManagedDesktop' -Latest | Select-Object -ExpandProperty "InstallationPath"
dotnet build "../src/CommandLine.sln" /p:Configuration=Debug /v:m /m
roslynator fix "../src/Roslynator.sln" `
--analyzer-assemblies `
"../src/Analyzers.CodeFixes/bin/Debug/netstandard2.0/Roslynator.CSharp.Analyzers.dll" `
"../src/Analyzers.CodeFixes/bin/Debug/netstandard2.0/Roslynator.CSharp.Analyzers.CodeFixes.dll" `
"../src/CodeAnalysis.Analyzers.CodeFixes/bin/Debug/netstandard2.0/Roslynator.CodeAnalysis.Analyzers.dll" `
"../src/CodeAnalysis.Analyzers.CodeFixes/bin/Debug/netstandard2.0/Roslynator.CodeAnalysis.Analyzers.CodeFixes.dll" `
"../src/Formatting.Analyzers.CodeFixes/bin/Debug/netstandard2.0/Roslynator.Formatting.Analyzers.dll" `
"../src/Formatting.Analyzers.CodeFixes/bin/Debug/netstandard2.0/Roslynator.Formatting.Analyzers.CodeFixes.dll" `
"$visualStudioPath/Common7/IDE/CommonExtensions/Microsoft/VBCSharp/LanguageServices/Microsoft.CodeAnalysis.CSharp.EditorFeatures.dll" `
"$visualStudioPath/Common7/IDE/CommonExtensions/Microsoft/VBCSharp/LanguageServices/Microsoft.CodeAnalysis.CSharp.Features.dll" `
"$visualStudioPath/Common7/IDE/CommonExtensions/Microsoft/VBCSharp/LanguageServices/Microsoft.CodeAnalysis.EditorFeatures.dll" `
"$visualStudioPath/Common7/IDE/CommonExtensions/Microsoft/VBCSharp/LanguageServices/Microsoft.CodeAnalysis.Features.dll" `
--format `
--verbosity d `
--file-log "roslynator.log" `
--file-log-verbosity diag `
--diagnostic-fix-map "RCS1155=Roslynator.RCS1155.OrdinalIgnoreCase"