Swimat icon indicating copy to clipboard operation
Swimat copied to clipboard

Configurable format rule

Open neilco opened this issue 9 years ago • 5 comments

There's a number of linting tools now available for Swift, such as SwiftLint and Tailor. It would be great if Swimat had the option of using one of these as a canonical style guide. The chosen style should be configurable on a per user and per project basis.

neilco avatar Dec 07 '15 14:12 neilco

I'll study about it, thanks for sharing. ^^

Jintin avatar Dec 07 '15 15:12 Jintin

It'd be great, but one thing I currently like about Swimat is that it can do only basic formatting without enforcing more exquisite options. My experience is that complex rules like clang-format's look good in principle but in practice are just a source of frustration. Swimat doesn't do everything the way I like it (no automated tool can), but it doesn't break anything either, not does it work against me.

entonio avatar Mar 07 '16 19:03 entonio

This would be amazing as the current plugin, SwiftLintXcode, does not work in Xcode 8

Juice805 avatar Jun 10 '17 21:06 Juice805

@Juice805 While you wait, you could try converting SwiftLintXcode to your own extension. Fork Swimat and copy paste their formatting code to replace ours.

saagarjha avatar Jun 11 '17 21:06 saagarjha

I’ll check it out, thanks

Juice805 avatar Jun 11 '17 21:06 Juice805