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

fix: pass flag to shfmt to ignore passed files in check mode #211

Merged
merged 1 commit into from
Apr 20, 2024

Conversation

daewok
Copy link
Contributor

@daewok daewok commented Apr 16, 2024


Pass the --apply-ignore flag the shfmt when checking to see if files are already formatted.

Type of change

  • Bug fix (change which fixes an issue)

For changes visible to end-users

  • Suggested release notes are provided below:

shfmt will now respect ignores in .editorconfig even in check mode.

Test plan

I didn't see any existing tests for check mode.

@CLAassistant
Copy link

CLAassistant commented Apr 16, 2024

CLA assistant check
All committers have signed the CLA.

@alexeagle
Copy link
Member

Ah, I had to go track down mvdan/sh#1037 to find the context. Thanks!

@alexeagle alexeagle enabled auto-merge (squash) April 20, 2024 02:39
@alexeagle alexeagle merged commit ced7b02 into aspect-build:main Apr 20, 2024
8 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.

3 participants