diff options
| author | Radon Rosborough <radon.neon@gmail.com> | 2022-06-04 15:37:45 -0700 |
|---|---|---|
| committer | Radon Rosborough <radon.neon@gmail.com> | 2022-06-04 15:39:09 -0700 |
| commit | 67853e98b190cc735a8ad31bd1de64f76f2990c4 (patch) | |
| tree | e33aa13374df01e95b78003d350b507a079ccd34 | |
| parent | b25256f1b014ee02887c7882a789f95dc87d061b (diff) | |
Use spaces instead of tabs in shfmt
| -rw-r--r-- | CHANGELOG.md | 4 | ||||
| -rw-r--r-- | apheleia.el | 2 | ||||
| -rw-r--r-- | test/formatters/samplecode/shfmt/out.bash | 2 |
3 files changed, 6 insertions, 2 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 7cbd6c0..03b9088 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog]. +## Unreleased +### Enhancements +* shfmt uses 4 spaces instead of tabs by default. + ## 3.0 (released 2022-06-01) ### Breaking changes * The arguments of formatters defined as Elisp functions has changed. diff --git a/apheleia.el b/apheleia.el index e8e5dc3..f7b8154 100644 --- a/apheleia.el +++ b/apheleia.el @@ -935,7 +935,7 @@ being run, for diagnostic purposes." "--enable-outside-detected-project")) (phpcs . ("apheleia-phpcs")) (prettier . (npx "prettier" "--stdin-filepath" filepath)) - (shfmt . ("shfmt")) + (shfmt . ("shfmt" "-i" "4")) (rustfmt . ("rustfmt" "--quiet" "--emit" "stdout")) (terraform . ("terraform" "fmt" "-"))) "Alist of code formatting commands. diff --git a/test/formatters/samplecode/shfmt/out.bash b/test/formatters/samplecode/shfmt/out.bash index a5903da..879aa94 100644 --- a/test/formatters/samplecode/shfmt/out.bash +++ b/test/formatters/samplecode/shfmt/out.bash @@ -1,3 +1,3 @@ function f() { - thing + thing } |
