PerfectlySoft / Perfect

Server-side Swift. The Perfect core toolset and framework for Swift Developers. (For mobile back-end development, website and API development, and more…)
https://www.perfect.org
Apache License 2.0
13.83k stars 945 forks source link

Consistent swift coding style #7

Closed cristeahub closed 8 years ago

cristeahub commented 8 years ago

Taken from this reddit comment:: https://www.reddit.com/r/swift/comments/3ttu9u/serverside_swift_is_here_its_perfect/cx9hrpc

Nice work!
I have one suggestion though - be more consistent wrt to code conventions. For example, top
level constants (from one module) are defined in
- lowercase snake case
- uppercase snake case
- camelCase
...

by 20DCCD77-E82E-4045-A

I would suggest using https://github.com/raywenderlich/swift-style-guide as your style guide. At least as a mold for a style guide. It seems to be very good.

net commented 8 years ago

+1

iamcam commented 8 years ago

+1 on the Ray Wenderlich style guide for inspiration.

DJNgoma commented 8 years ago

Realm even has a linter as well :D https://github.com/realm/SwiftLint

MoathOthman commented 8 years ago

+1 for Ray wanderlich swift guide

narup commented 8 years ago

:+1:

iamjono commented 8 years ago

I'm a big believer in the Ray Wenderlich style guide too... However I'm closing this issue as it's been hanging around for a while and a lot of code's been updated to conform to conventions :) Thanks!