Skip to content

Broaden scope of shellcheck? #102

Description

@bmorcos

I noticed this because in the hardware repos I am using a custom static.sh based on the default template.

The shellcheck line in the static.sh template is currently:

exe shellcheck -e SC2087 .ci/*.sh

I have other shell scripts in the hardware repos so I started using something like this to evaluate all scripts in the repo:

exe find . -type f -name '*.sh' -exec shellcheck -e SC2087 {} \;

You could also exclude specific directories:

exe find . \( -path ./dir1 -o -path ./dir2 \) -prune -o -type f -name '*.sh' -exec shellcheck -e SC2087 {} \;

Not sure if this is too esoteric or if other repos would benefit for this, but figured I'd drop it here for discussion.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions