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

chore(ci): Improve Bash shell formatting #134

Merged

Conversation

adamdmharvey
Copy link
Contributor

Trivial PR to help make the listing tests go as clean as possible, helping focus on real linting errors.

Currently, the Bash shell formatting linter in CI was failing with a non-blocking error (but lots of output).

A shell script was using roughly 4 space indentations, while the default shfmt used 6. This PR just updates the Megalinter config to define 4 for the tests, and makes a few minor adjustments to the script itself to align to that spacing. (one mistake, and a few shfmt suggestions re: file piping and an opinionated change re: if formatting)

Before After
image image
image image

Signed-off-by: Adam Harvey <33203301+adamdmharvey@users.noreply.github.com>
Signed-off-by: Adam Harvey <33203301+adamdmharvey@users.noreply.github.com>
Copy link
Member

@BryanQuigley BryanQuigley left a comment

Choose a reason for hiding this comment

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

Thanks for this!

@BryanQuigley BryanQuigley merged commit 1c50f77 into opendataphilly:main Mar 13, 2024
3 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.

None yet

2 participants