mirror of
https://github.com/vale981/apheleia
synced 2025-03-04 17:11:40 -05:00
Fix rustfmt dumping child modules' content into file (#45)
* Fix rustfmt dumping child modules' content into file rustfmt by default analyses all files dependent on the current file, too. The out put of --emit stdout contain all child modules. Apheleia would happily dump that into the currently edited buffer (even though the content came from another file.) The unstable option --skip-children prevents that. It's as yet untested! I've only made a couple of quick sanity checks. * Fix long line
This commit is contained in:
parent
92c0fce6b4
commit
f46d65c179
1 changed files with 2 additions and 1 deletions
|
@ -466,7 +466,8 @@ modified from what is written to disk, then don't do anything."
|
|||
(latexindent . ("latexindent" file))
|
||||
(ocamlformat . ("ocamlformat" file))
|
||||
(prettier . (npx "prettier" "--stdin-filepath" filepath))
|
||||
(rustfmt . ("rustfmt" "--quiet" "--emit" "stdout" file))
|
||||
(rustfmt . ("rustfmt" "--unstable-features" "--skip-children"
|
||||
"--quiet" "--emit" "stdout" file))
|
||||
(terraform . ("terraform" "fmt" "-")))
|
||||
"Alist of code formatting commands.
|
||||
The keys may be any symbols you want, and the values are
|
||||
|
|
Loading…
Add table
Reference in a new issue