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

[ci] enforce shfmt checks #191

Merged
merged 14 commits into from
Nov 2, 2023
Merged

[ci] enforce shfmt checks #191

merged 14 commits into from
Nov 2, 2023

Conversation

jameslamb
Copy link
Owner

Proposes using shfmt for auto-formatting of shell scripts,, and enforcing in CI that shell scripts in the project conform to that project's preferences.

Ref: https://github.com/mvdan/sh/blob/master/cmd/shfmt/shfmt.1.scd

@jameslamb jameslamb added the maintenance Not a bug or feature label Nov 2, 2023
@@ -19,7 +19,8 @@ jobs:
fetch-depth: 1
- name: run linting
run: |
export PATH="/usr/share/miniconda/bin:${PATH}"
GOPATH_BIN=$(go env GOPATH)/bin
Copy link
Owner Author

Choose a reason for hiding this comment

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

@jameslamb jameslamb changed the title [ci] enforce shfmt [ci] enforce shfmt checks Nov 2, 2023
@jameslamb jameslamb merged commit 9255ec6 into main Nov 2, 2023
21 checks passed
@jameslamb jameslamb deleted the ci/shfmt branch November 2, 2023 04:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance Not a bug or feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant