Skip to content

Conversation

@alxndrsn
Copy link
Contributor

@alxndrsn alxndrsn commented Dec 3, 2025

Introduces https://github.com/getodk/central/blob/master/test/check-scripts.sh, with a few changes:

  • disables tab/space indentation enforcement, as this repo currently uses both
  • ignores SC2038, as find does not generate exit codes in the same way as xargs, and current code will fail obviously if files are introduced with names which confuse xargs
  • does not ignore SC2016, as this repo does not have similar variable substitution to the odk-central repo

Closes getodk/central#1513

What has been done to verify that this works as intended?

New CI job.

Why is this the best possible solution? Were any other approaches considered?

Alternative would be to only introduce shellcheck, and maybe to ignore all existing violations (as the code clearly works as-is).

How does this change affect users? Describe intentional changes to behavior and behavior that could have accidentally been affected by code changes. In other words, what are the regression risks?

No change.

Does this change require updates to user documentation? If so, please file an issue here and include the link below.

No.

Before submitting this PR, please make sure you have:

  • run npm run test and npm run lint and confirmed all checks still pass OR confirm CircleCI build passes
  • verified that any code or assets from external sources are properly credited in comments or that everything is internally sourced

Introduces https://github.com/getodk/central/blob/master/test/check-scripts.sh, with two changes:

* disables tab/space indentation enforcement, as this repo currently uses both
* ignores SC2038, as `find` does not generate exit codes in the same way as `xargs`, and current code will fail obviously if files are introduced with names which confuse xargs
* does not ignore SC2016, as this repo does not have similar variable substitution to the odk-central repo

Closes #1513
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.

[frontend] ci: run shellcheck on scripts

1 participant