Skip to content

Script lint improvements#294

Merged
theyoyojo merged 4 commits intomasterfrom
script_lint
Sep 22, 2025
Merged

Script lint improvements#294
theyoyojo merged 4 commits intomasterfrom
script_lint

Conversation

@charliemirabile
Copy link
Contributor

I was fiddling with orbit start.sh when I got nerd sniped by the fact that we don't lint it and in fact there are several scripts that we added but forgot to lint. Restore order to the universe by adding them all, and try to make it harder to forget to add linting in the future.

We forgot to add dev_sockets.sh to list of scripts to be linted
in script-lint.sh when it was introduced.

Fixes: f063e49 ("container-compose: switch to unix sockets for nginx")
We forgot to add start.sh to list of scripts to be linted
in script-lint.sh when it was introduced.

Fixes: 0bbf8a3 ("orbit: Containerfile: move start command to script")
We forgot to add start.sh to list of scripts to be linted
in script-lint.sh when we imported the CI code from circumference.

Fixes: 930b740 ("CI: move code into singularity repo")
It is easy to forget to add scripts to script-lint.sh. Run a find command
to search for any files ending in `.sh` and check how many are found
against a known good count. This ensures that script lint will fail if a
new script is added and it is not updated.

This is not perfect since there are scipts like the githooks that do not
have a .sh extension, but it should cover most cases and make it easy to
do the right thing.

Obviously it is concievable that a script might come along which we do not
want to lint for some reason. In that case it is fine to just increment
the number we check for without adding a call to shellcheck. It just makes
sure that that choice is explicit.
Copy link
Contributor

@theyoyojo theyoyojo left a comment

Choose a reason for hiding this comment

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

A P P R O V E D

@theyoyojo theyoyojo merged commit 1d24a18 into master Sep 22, 2025
1 check passed
@theyoyojo theyoyojo deleted the script_lint branch September 22, 2025 17:39
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