Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lint: shell scripts #576

Merged
merged 1 commit into from
Jul 6, 2024
Merged

Conversation

benoit-pierre
Copy link
Contributor

@benoit-pierre benoit-pierre commented Jul 6, 2024

Fix issues in shell scripts picked up by base .ci/lint_script.sh when running it locally with the crengine submodule checked out.


This change is Reviewable

Fix issues in shell scripts picked up by base `.ci/lint_script.sh`
when running it locally with the crengine submodule checked out.
@Frenzie Frenzie merged commit f6a17e6 into koreader:master Jul 6, 2024
1 check passed
@Frenzie
Copy link
Member

Frenzie commented Jul 6, 2024

Does shfmt ask for ${var} regardless if it's necessary or not?

@benoit-pierre
Copy link
Contributor Author

shellcheck you mean? Yes, since we're using --enable=require-variable-braces.

@benoit-pierre benoit-pierre deleted the pr/lint_shell_scripts branch July 6, 2024 19:19
@Frenzie
Copy link
Member

Frenzie commented Jul 7, 2024

No, I didn't mean shellcheck since it's more of a stylistic choice. There are many situations where they're unequivocally necessary and shellcheck catches most or possibly all of those. I seem to have forgotten that we enabled that.

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