Skip to content

Commit

Permalink
doc: add section documenting VS Code integration
Browse files Browse the repository at this point in the history
  • Loading branch information
jamacku committed Sep 29, 2023
1 parent 33ad9ab commit 7f773b8
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,18 @@ Differential ShellCheck GitHub Action could be used in private repositories by a

_Code scanning is available for all public repositories on GitHub.com. Code scanning is also available for private repositories owned by organizations that use GitHub Enterprise Cloud and have a license for GitHub Advanced Security. For more information, see "[About GitHub Advanced Security](https://docs.github.com/en/get-started/learning-about-github/about-github-advanced-security)"._

## Using with Visual Studio Code

Differential ShellCheck doesn't have a VS Code plugin, but results can be accessed by using [SARIF Viewer](https://marketplace.visualstudio.com/items?itemName=MS-SarifVSCode.sarif-viewer) VS Code extension provided by Microsoft. Once installed, you have to connect your GitHub account with VS Code. Then, if you open a repository that uses Differential ShellCheck, you will see reported defects directly in your VS Code IDE.

<p align="center">
<img src="docs/images/vs-code-sarif-connect-dark.png" width="450" />
</p>

<p align="center">
<img src="docs/images/vs-code-sarif-results-dark.png" width="550" />
</p>

## Limitations

* `differential-shellcheck` Action doesn't run correctly when overwriting commits using `--force` and when the triggering event is `push`.
Expand Down
Binary file added docs/images/vs-code-sarif-connect-dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/vs-code-sarif-results-dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 7f773b8

Please sign in to comment.