Skip to content

Conversation

@basak-qcom
Copy link
Contributor

Instead of just scripts/*.sh, scan all scripts found in the repository using file.

I didn't find a widely accepted mechanism to do this so settled on using file. The script is at least not too long to follow, doesn't introduce any external dependency, and is careful to avoid errors from unusual characters in filenames (eg. backslash escapes and carriage returns) to try and be safe against all inputs.

If this pattern works, we could extend it to the other lint checks in this file.

@basak-qcom basak-qcom force-pushed the full-shellcheck branch 4 times, most recently from d66b545 to afad673 Compare June 24, 2025 11:08
Copy link
Contributor

@lool lool left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good; left a few proposed improvements, but happy to merge

Instead of just scripts/*.sh, scan all scripts found in the repository
using `file`.

I didn't find a widely accepted mechanism to do this so settled on using
`file`. The script is at least not too long to follow, doesn't introduce
any external dependency, and is careful to avoid errors from unusual
characters in filenames (eg. backslash escapes and carriage returns) to
try and be safe against all inputs.

If this pattern works, we could extend it to the other lint checks in
this file.

Signed-off-by: Robie Basak <[email protected]>
@lool lool merged commit c9f4958 into qualcomm-linux:main Jun 24, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants