Skip to content

Commit 4e5b99f

Browse files
committed
Add "--shell=bash" argument for shellcheck
1 parent dd9d242 commit 4e5b99f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: server/src/linter.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export default class Linter {
6262
document: LSP.TextDocument,
6363
folders: LSP.WorkspaceFolder[],
6464
): Promise<ShellcheckResult> {
65-
const args = ['--format=json1', '--external-sources', `--source-path=${this.cwd}`]
65+
const args = ['--shell=bash', '--format=json1', '--external-sources', `--source-path=${this.cwd}`]
6666
for (const folder of folders) {
6767
args.push(`--source-path=${folder.name}`)
6868
}

0 commit comments

Comments
 (0)