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

Remove default shfmt flags to respect .editorconfig file #8

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

tolkonepiu
Copy link

The default shfmt flags -i 2 -ci have been removed to allow shfmt to respect the .editorconfig file when formatting shell scripts.

When default flags are specified, shfmt ignores the settings in .editorconfig, which can lead to inconsistencies in formatting. By setting the default to an empty string, users can now rely on .editorconfig for formatting configurations, or override the flags as needed.

The default `shfmt` flags `-i 2 -ci` have been removed to allow `shfmt` to respect the `.editorconfig` file when formatting shell scripts.

When default flags are specified, `shfmt` ignores the settings in `.editorconfig`, which can lead to inconsistencies in formatting. By setting the default to an empty string, users can now rely on `.editorconfig` for formatting configurations, or override the flags as needed.
Copy link

@ccoVeille ccoVeille left a comment

Choose a reason for hiding this comment

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

Indeed, good catch

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