-
Notifications
You must be signed in to change notification settings - Fork 27
Description
First of all: Thank you for this tool, it helps me really often to improve my code and find spelling issues or unused variables.
The explanations are really helpful for beginners to understand what's the problem with the script and shows solutions how they can be fixed. Here I've learned a lot of sting comparisons and equality comparisons (-eq, -ne, -lt and -gt), things i didn't know before.
Now to my Problem: if i paste some code, the error "Sandbox resource constraints exceeded. Try a smaller script, or run ShellCheck locally." comes up.
Q: Is it possible to increase the limit of pasted code?
AND/OR is it in any way possible to program an ignore case for comments and blank lines (so often as needed), so that these are not included in the calculation of the limit, or isn't that the main problem?
I really need this online tool here, the terminal version for Linux is nowhere near as informative as this tool here.
I do test really lot of with this tool, but I can't understand its logic, when the message "Sandbox [...]" is triggered and when not. Sometimes it is when you remove code from input (why?) and sometimes if you only add eg. a single quotes like $SUDO_USER="$('whoami')" and sometimes it helps when I place my variables in another order or add/remove blank lines.
Please help me to understand, the exact same (means 100% identically) script code declared as shebang #/bin/sh will be prompted as "Sandbox resource constraints exceeded. Try a smaller script, or run ShellCheck locally." okay, but when I change it into shebang #!/bin/bash all is fine.
my current statistics for the code file (german only - sorry!):

Current result on shellcheck.net (shebang #!/bin/sh):

Current result on shellcheck.net (shebang #!/bin/bash):

Q: Does the online shellcheck sh really handle correctly?
My script written in the same style with more Code and less comments has worked in the online-tool declared as sh and now with less of Code and more comments works in the online-tool only declared as bash - this logic i can't understand.
By the way: when I run shellcheck locally, all is fine as sh and bash too. Yesterday I installed additionally VIM and here and the result is the same - no issues.
And no, I didn't use build in commands which are only in bash available.
Sure I can change all of my scripts to bash (my code works in both shebang's), but this solves not the problem here in the online-tool ...
If you need my script to test, please let me know.