0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

swiftformatのspaceAroundOperatorsが一部の演算子で効かなかった話

Posted at

自分用の備忘録です。

起こったこと

フォーマット自体は働くのになぜか+記号の前後にのみ空白が挿入されませんでした。
もちろん.swiftformatファイルでspaceAroundOperatorsのオプションは有効化されています。

解決法

swiftformat . --enable spaceAroundOperatorsを実行したら正しく機能するようになりました。理由はよくわかっていません。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?