- Fork the repo
- Create a branch, we will not merge from master.
- Create a test case for your change. If you are adding functionality or fixing a bug, we need tests.
- Make your test pass.
- Ensure other tests still pass. We will only merge pull requests with passing tests.
- Push your changes to GitHub and submit a pull request.
This document gives coding conventions for Objective-C code. It is very similar to Python's PEP-8. The main key point in this guideline is that code is read much more often than it is written. These guidelines are designed to improve the readability of code and make is consistent across all code used in this framework.
Use 4 spaces per indentation level. Never use tabs.
Imports are always put at the top of the file, before any constants. Imports should be grouped in the following order:
- Standard library header
- Related third party headers
- Local application headers
You should put a blank line between each group of headers.
Trailing whitespace should never be found in code, this includes any lines which only contain whitespace.
Avoid extraneous whitespace in the following situations:
- Use a single space around an assignment (or any) operator. Never use multiple spaces for alignment.
Methods should be grouped together, with '#pragma mark -' headers, for example grouping alloc/dealloc, viewDidLoad, etc together.