Skip to content

Instantly share code, notes, and snippets.

@oledid
Last active March 19, 2021 18:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save oledid/21bf3e559f43a737bca4da0760d4b74a to your computer and use it in GitHub Desktop.
Save oledid/21bf3e559f43a737bca4da0760d4b74a to your computer and use it in GitHub Desktop.
Visual Studio Code-task and problem matcher for JetBrains InspectCode
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
{
"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
}
}
}
]
}
@oledid
Copy link
Author

oledid commented Mar 19, 2021

Clear problems: Run command "Reload window" in vscode

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment