-
Notifications
You must be signed in to change notification settings - Fork 539
Update code style to common Swift style #125
Update code style to common Swift style #125
Conversation
Omitted `self` where possible and update spacing after colons
|
This is great 👍 I've been thinking about swiftlint recently and this looks like a good step in that direction. Feel free to add it to this PR if you feel inclined, otherwise I'll do it on the back of your work. |
|
Also please credit yourself in |
Added swiftlint build phase and fixed errors and warnings generated by swiftlint
|
Hugo Tunius (@k0nserv) I used the default To fix the line length warnings (120 characters) I used this style of indentation. I hope this is okay or is there a preferable style? Let me know when something is wrong or needs change. (There also was a commit I did not intend to push which I reverted afterwards) |
|
I think I prefer this style Emil Bogren (@bogren) opinions? |
|
Or like this? 😃 I think I prefer Hugo Tunius (@k0nserv) suggestion but put the next parameter below as well :) |
|
This is how I would write it |
Hugo Tunius (k0nserv)
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome, looks great :)
|
Thanks a bunch for the PR Kevin (@moogle19) |
Hi,
I updated some of the variable declarations with spaces after the colons and also omitted
self's where possible (as recommended).