VS Code editor | How to include -x switch for ShellCheck?
6
votes
1
answer
2764
views
### Problem description and reproduction
In terminal run:
shellcheck -x my_script
Where
my_script
sources another (partial) script.
I get no error with the -x
switch, but if I run it **without -x
**:
shellcheck my_script
I get notification like this one:
. ./functions/my_function
^-- SC1091: Not following: ... was not specified as input (see shellcheck -x).
SC1091 on GitHub
***
### My ShellCheck
I'm working with self-compiled ShellCheck located in:
~/.cabal/bin/shellcheck
***
### Goal
I'm working with Visual Studio Code GUI text editor. Is there a way to force the -x
switch in there somewhere or other solution?
Asked by Vlastimil Burián
(30515 rep)
Aug 9, 2019, 09:25 AM
Last activity: Feb 9, 2022, 11:46 PM
Last activity: Feb 9, 2022, 11:46 PM