lassik / emacs-format-all-the-code

Auto-format source code in many languages with one command
https://melpa.org/#/format-all
MIT License
610 stars 106 forks source link

swiftformat doesn't refer to .swiftformat config at root of my project #121

Closed tomoyukim closed 3 years ago

tomoyukim commented 3 years ago

Hi, I've tried to apply swiftformat with .swiftformat config file at root of my iOS project, however it seems not to use the config. (e.g. intent level 4 is applied as default instead of 2 in my config file). Do you have any way to resolve config file path for the formatter?

lassik commented 3 years ago

Fixed in the above commit and tested that it works on my computer. Let me know if the fix doesn't work for you.

tomoyukim commented 3 years ago

Thank you for your quick response! It works fine for me, too.