Skip to content

Instantly share code, notes, and snippets.

@dcd-arnold
Last active August 17, 2023 05:29
Show Gist options
  • Save dcd-arnold/1b7ed6274d848dbef899ba4935dff6ce to your computer and use it in GitHub Desktop.
Save dcd-arnold/1b7ed6274d848dbef899ba4935dff6ce to your computer and use it in GitHub Desktop.
VSCode ShellCheck AutoFix Task
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "ShellCheck AutoFix",
"type": "shell",
"command": "shellcheck -f diff --enable=all ${relativeFile} | patch --strip=1 --directory='${fileWorkspaceFolder}'",
"problemMatcher": [],
"presentation": {
"reveal": "silent",
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment