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 shellcheck and shfmt #4926

Closed
wants to merge 3 commits into from

Conversation

Elsie19
Copy link
Member

@Elsie19 Elsie19 commented Nov 18, 2023

No description provided.

@github-actions github-actions bot added the CI CI updates label Nov 18, 2023
@@ -0,0 +1,17 @@
name: SH Checker

Check notice

Code scanning / Checkov (reported by Codacy)

Ensure top-level permissions are not set to write-all Note

Ensure top-level permissions are not set to write-all
@oklopfer oklopfer self-requested a review November 20, 2023 04:20
SHFMT_OPTS: -s -i 2 -bn -ci -sr -s
with:
sh_checker_comment: true
sh_checker_exclude: "packages/emacs/emacs.pacscript packages/emacs-git/emacs-git.pacscript"
Copy link
Member

Choose a reason for hiding this comment

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

is this list going to grow ever longer?

Copy link
Member Author

Choose a reason for hiding this comment

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

Unless there is a specific request, no. We only added it because Wizard wanted some comments to be visually aligned.

oklopfer
oklopfer previously approved these changes Nov 25, 2023
@Elsie19
Copy link
Member Author

Elsie19 commented Nov 25, 2023

this doesn't work yet Oren 💀

@oklopfer oklopfer dismissed their stale review November 25, 2023 02:53

My review was requested too early

@oklopfer
Copy link
Member

89b4ee8
...

@Elsie19
Copy link
Member Author

Elsie19 commented Nov 25, 2023

It doesn't work if we remove it. I've tested it.

@oklopfer
Copy link
Member

ok what about this one https://github.com/koalaman/shellcheck-precommit

@oklopfer
Copy link
Member

and https://github.com/pecigonzalo/pre-commit-shfmt

seems like they were just split out

@oklopfer
Copy link
Member

solved with #4965

@oklopfer oklopfer closed this Nov 29, 2023
@Elsie19 Elsie19 deleted the enforce-shellcheck branch August 17, 2024 18:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI CI updates
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants