Skip to content

Commit b464645

Browse files
author
Bart Koelman
committed
Updated Resharper global tools
1 parent 16fef94 commit b464645

File tree

4 files changed

+6
-12
lines changed

4 files changed

+6
-12
lines changed

.config/dotnet-tools.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"isRoot": true,
44
"tools": {
55
"jetbrains.resharper.globaltools": {
6-
"version": "2021.1.4",
6+
"version": "2021.2.1",
77
"commands": [
88
"jb"
99
]
@@ -27,4 +27,4 @@
2727
]
2828
}
2929
}
30-
}
30+
}

Build.ps1

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ function CheckLastExitCode {
88

99
function RunInspectCode {
1010
$outputPath = [System.IO.Path]::Combine([System.IO.Path]::GetTempPath(), 'jetbrains-inspectcode-results.xml')
11-
dotnet jb inspectcode JsonApiDotNetCore.sln --output="$outputPath" --profile=WarningSeverities.DotSettings --properties:Configuration=Release --severity=WARNING --verbosity=WARN -dsl=GlobalAll -dsl=SolutionPersonal -dsl=ProjectPersonal
11+
dotnet jb inspectcode --no-build JsonApiDotNetCore.sln --output="$outputPath" --profile=WarningSeverities.DotSettings --properties:Configuration=Release --severity=WARNING --verbosity=WARN -dsl=GlobalAll -dsl=SolutionPersonal -dsl=ProjectPersonal
1212
CheckLastExitCode
1313

1414
[xml]$xml = Get-Content "$outputPath"

cleanupcode.ps1

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ if ($LASTEXITCODE -ne 0) {
88
throw "Tool restore failed with exit code $LASTEXITCODE"
99
}
1010

11-
dotnet build -c Release
11+
dotnet restore
1212

1313
if ($LASTEXITCODE -ne 0) {
14-
throw "Build failed with exit code $LASTEXITCODE"
14+
throw "Package restore failed with exit code $LASTEXITCODE"
1515
}
1616

1717
dotnet regitlint -s JsonApiDotNetCore.sln --print-command --jb --profile --jb --profile='\"JADNC Full Cleanup\"' --jb --properties:Configuration=Release --jb --verbosity=WARN

inspectcode.ps1

+1-7
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,9 @@ if ($LASTEXITCODE -ne 0) {
88
throw "Tool restore failed with exit code $LASTEXITCODE"
99
}
1010

11-
dotnet build -c Release
12-
13-
if ($LASTEXITCODE -ne 0) {
14-
throw "Build failed with exit code $LASTEXITCODE"
15-
}
16-
1711
$outputPath = [System.IO.Path]::Combine([System.IO.Path]::GetTempPath(), 'jetbrains-inspectcode-results.xml')
1812
$resultPath = [System.IO.Path]::Combine([System.IO.Path]::GetTempPath(), 'jetbrains-inspectcode-results.html')
19-
dotnet jb inspectcode JsonApiDotNetCore.sln --output="$outputPath" --profile=WarningSeverities.DotSettings --properties:Configuration=Release --severity=WARNING --verbosity=WARN -dsl=GlobalAll -dsl=SolutionPersonal -dsl=ProjectPersonal
13+
dotnet jb inspectcode JsonApiDotNetCore.sln --build --output="$outputPath" --profile=WarningSeverities.DotSettings --properties:Configuration=Release --severity=WARNING --verbosity=WARN -dsl=GlobalAll -dsl=SolutionPersonal -dsl=ProjectPersonal
2014

2115
if ($LASTEXITCODE -ne 0) {
2216
throw "Code inspection failed with exit code $LASTEXITCODE"

0 commit comments

Comments
 (0)