Skip to content

Remove default shfmt flags to respect .editorconfig file#8

Open
tolkonepiu wants to merge 1 commit intoreviewdog:mainfrom
tolkonepiu:cleanup_default_flags
Open

Remove default shfmt flags to respect .editorconfig file#8
tolkonepiu wants to merge 1 commit intoreviewdog:mainfrom
tolkonepiu:cleanup_default_flags

Conversation

@tolkonepiu
Copy link
Copy Markdown

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
Copy Markdown

@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