kodecocodes / objective-c-style-guide

A style guide that outlines the coding conventions for Kodeco
http://www.raywenderlich.com/62570/objective-c-style-guide
3.1k stars 628 forks source link

First try of the uncrustify config file #44

Open gregheo opened 10 years ago

gregheo commented 10 years ago

There are still hundreds of configuration options to wade through, but I thought I would start with what I had.

The obvious rules are covered:

Of course I included a test too. I hope it will grow with the configuration file so we can weed out any funny edge cases and get a sense of uncrustify's limits.

StuartWebster commented 9 years ago

I'm having an issue with sp_after_oc_msg_receiver = remove that turns [[Foo alloc] init] into [[Foo alloc]init]

Changing the option to sp_after_oc_msg_receiver = force fixes it for me.

I also use sp_cond_colon = force and sp_cond_question = force for proper spacing on the ?: operator.