Skip to content

shellcheck unconditionally expects tabs to be 8 spaces wide #3454

@haarp

Description

@haarp

Shellcheck uses tabs+spaces to indent the markers pointing to the offending code. This causes misalignment if one does not use the default tabs -8 in a terminal. Please consider using just spaces for alignment.

For bugs with existing features

Here's a snippet or screenshot that shows the problem:

tabs -4
shellcheck /some/script

# or alternatively:

shellcheck /some/script | less --tabs=4
Image

(The script in this screenshot was itself indented also with 4-space long tabs)

Here's what shellcheck currently says:

Markers are misaligned

Here's what I wanted or expected to see:

Markers should align to code

Thanks! :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions