Open vapier opened 1 year ago
This feature would be useful. Right now I have to annotate stdin checks separately to distinguish them from one another.
This would be useful when hacking together a simple shellcheck wrapper where parsing shellcheck's JSON output is not worth it. For example, in markdown-shellcheck I have to use regexes to replace the -
with the filename.
For new checks and feature suggestions
Here's a snippet or screenshot that shows the problem:
Here's what shellcheck currently says:
Here's what I wanted or expected to see:
The output of
-
in the diagnostics is confusing, especially when passing other files. It's also problematic when using--external-sources
asSCRIPTDIR
isn't set to anything useful.Would like to have an option like
--stdin-filename
so that I can passtest.sh
and it'll use that name when processing stdin.