Last active
March 19, 2021 18:48
-
-
Save oledid/21bf3e559f43a737bca4da0760d4b74a to your computer and use it in GitHub Desktop.
Visual Studio Code-task and problem matcher for JetBrains InspectCode
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dotnet tool install -g JetBrains.ReSharper.GlobalTools | |
jb inspectcode (Get-Item *.sln).FullName -o="jetbrains-inspectcode-results.xml" --absolute-paths --DotNetCore="C:\Program Files\dotnet\dotnet.exe" | |
Get-Content jetbrains-inspectcode-results.xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": "2.0.0", | |
"tasks": [ | |
{ | |
"label": "jetbrains inspectcode", | |
"command": "pwsh", | |
"type": "shell", | |
"args": ["run-jetbrains-inspectcode.ps1"], | |
"problemMatcher": { | |
"owner": "${workspaceFolder}", | |
"fileLocation": "absolute", | |
"pattern": { | |
"regexp": "<.*TypeId=\"([^\"]*)\"\\s*File=\"([^\"]*)\"\\s+Offset=\"([^\"]*)\"\\s+Line=\"([^\"]*)\"\\s+Message=\"([^\"]*)\"\\s+\\/>", | |
"file": 2, | |
"line": 4, | |
"column": 3, | |
"message": 5 | |
} | |
} | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Clear problems: Run command "Reload window" in vscode