Does it open pager or editor? How does it show the shellcheck issues.
Does it open pager or editor? How does it show the shellcheck issues.
To answer your questions directly in the meantime:
- Pager or Editor? It opens a pager (less by default, but it will automatically use the much nicer bat if you have it installed for syntax highlighting). It doesn't open an editor to prevent any accidental modifications.
- ShellCheck Issues: If shellcheck finds issues, it prints its standard, colorful output directly to your terminal before you review the script. It then pauses and asks you if you want to proceed with the review despite the warnings, like this:
==> Running ShellCheck analysis...
In /tmp/tmp.XXXXXX line 7: echo "Processing file: $filename" ^-- SC2086: Double quote to prevent globbing and word splitting.
==> WARNING: ShellCheck found potential issues. [?] Continue with review despite issues? [y/N]
Thanks again for the excellent idea!