Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

‎server/src/linter.ts

Lines changed: 6 additions & 1 deletion
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)

AltStyle によって変換されたページ (->オリジナル) /