shellcheck
shellcheck copied to clipboard
feature request: a new check for unnecessary spaces and inconsistent indentations
Would be great to have a check for consistent indentations and redundant spaces. Now, I can print this code and shellcheck won't report any issues:
if [ -e "${foo}" ]; then
if [ "$z" = 1 ]; then
echo "Hello!"
fi
fi
Obviously, indentations and spaces are totally off in this snippet.
I think you are looking for some auto-formatter, not static analysis tool.