You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Shellcheck gives a single SC1090 at the source site, which is expected:
ShellCheck can't follow non-constant source. Use a directive to specify location.
However, this is not helpful because a source= directive cannot be used to specify that multiple files should be imported at a single import site.
Here's what I wanted or expected to see:
I would like ShellCheck to have a directive (e.g. source-glob= or perhaps source-list= for especially complex cases) that would allow the user to specify that multiple files should be imported at this site:
A question might arise on how to handle such directives inside loops; perhaps the answer (if ShellCheck does not do this already) is to only process this directive exactly once per source site.
The text was updated successfully, but these errors were encountered:
For new checks and feature suggestions
Here's a snippet or screenshot that shows the problem:
There is a pattern common to relatively large shell programs of loading multiple files with subroutines from a "library" directory, e.g.:
Here's what shellcheck currently says:
Shellcheck gives a single SC1090 at the source site, which is expected:
However, this is not helpful because a
source=
directive cannot be used to specify that multiple files should be imported at a single import site.Here's what I wanted or expected to see:
I would like ShellCheck to have a directive (e.g.
source-glob=
or perhapssource-list=
for especially complex cases) that would allow the user to specify that multiple files should be imported at this site:A question might arise on how to handle such directives inside loops; perhaps the answer (if ShellCheck does not do this already) is to only process this directive exactly once per source site.
The text was updated successfully, but these errors were encountered: