Skip to content

Commit

Permalink
Adding .editorconfig file. http://editorconfig.org/
Browse files Browse the repository at this point in the history
  • Loading branch information
Hari Gopal committed Apr 16, 2015
1 parent 7bda892 commit a305753
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
13 changes: 13 additions & 0 deletions .editorconfig
@@ -0,0 +1,13 @@
# EditorConfig is awesome: http://EditorConfig.org

# top-most EditorConfig file
root = true

# The rulez. :P
[*]
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
charset = utf-8
indent_style = space
indent_size = 2
7 changes: 3 additions & 4 deletions README.md
Expand Up @@ -68,11 +68,10 @@ Most of the documentation is still at Apiary, with new entries being added to `/

## Coding style conventions

Basic coding conventions are defined in the .editorconfig file. Download plugin for your editor of choice. http://editorconfig.org/

### General

* Tabbing - 2 spaces.
* One blank line at the end of all files.
* No trailing spaces at the end of any line.
* One blank line between discrete blocks of code.
* No more than one blank line between blocks / segments of code.

Expand All @@ -91,4 +90,4 @@ Most of the documentation is still at Apiary, with new entries being added to `/
## Web resources considered for development
* http://matthewlehner.net/rails-api-testing-guidelines/
* https://github.com/joshbuddy/jsonpath
* http://pivotallabs.com/api-versioning/
* http://pivotallabs.com/api-versioning/

0 comments on commit a305753

Please sign in to comment.