Skip to content

Reformat shell scripts with shfmt and validate in CI#8

Merged
nathanchance merged 2 commits into
ClangBuiltLinux:masterfrom
msfjarvis:feature/enable-shfmt-validation
Apr 24, 2020
Merged

Reformat shell scripts with shfmt and validate in CI#8
nathanchance merged 2 commits into
ClangBuiltLinux:masterfrom
msfjarvis:feature/enable-shfmt-validation

Conversation

@msfjarvis

Copy link
Copy Markdown
Member

Uses mvdan/sh to enable formatting checks in CI, and correctly fails when the codestyle is incorrect, outputting a diff with fixes.

I chose the set of options that made the most sense to me, all available switches are listed here.

Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>

@nathanchance nathanchance left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM. Wait for Nick to comment before merging.

We should also do this in tc-build, continuous-integration, and dockerimage, do you want me to do it?

@msfjarvis

Copy link
Copy Markdown
Member Author

LGTM. Wait for Nick to comment before merging.

We should also do this in tc-build, continuous-integration, and dockerimage, do you want me to do it?

I can do it, I'm free right now. I'm sure you have better things to do :)

@nathanchance nathanchance merged commit f0ca342 into ClangBuiltLinux:master Apr 24, 2020
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