shellcheck icon indicating copy to clipboard operation
shellcheck copied to clipboard

feature request: a new check for unnecessary spaces and inconsistent indentations

Open yegor256 opened this issue 2 years ago • 1 comments

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.

yegor256 avatar Oct 14 '23 02:10 yegor256

I think you are looking for some auto-formatter, not static analysis tool.

aeiplatform avatar Oct 22 '23 23:10 aeiplatform