Skip to content

Commit d6a20ca

Browse files
authored
Merge pull request #536 from codedownio/shell-arg
Add "--shell=bash" argument for ShellCheck
2 parents dd9d242 + 587b6bb commit d6a20ca

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Diff for: server/src/linter.ts

+6-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,12 @@ 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 = [
66+
'--shell=bash',
67+
'--format=json1',
68+
'--external-sources',
69+
`--source-path=${this.cwd}`,
70+
]
6671
for (const folder of folders) {
6772
args.push(`--source-path=${folder.name}`)
6873
}

0 commit comments

Comments
 (0)