mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-28 10:08:20 -05:00
Merge pull request #2738 from meinac/contributing
wrong syntax of ruby on contributing.md fixed
This commit is contained in:
commit
9c1e3553d0
1 changed files with 1 additions and 1 deletions
|
@ -50,7 +50,7 @@ Anyone wishing to contribute to the **[Discourse/Discourse](https://github.com/d
|
||||||
* use spaces around operators, after commas, colons, semicolons, around `{` and before `}`
|
* use spaces around operators, after commas, colons, semicolons, around `{` and before `}`
|
||||||
* no space after `(`, `[` or before `]`, `)`
|
* no space after `(`, `[` or before `]`, `)`
|
||||||
* use Ruby 1.9 hash syntax: prefer `{ a: 1 }` over `{ :a => 1 }`
|
* use Ruby 1.9 hash syntax: prefer `{ a: 1 }` over `{ :a => 1 }`
|
||||||
* prefer `class << self; def method; end` over `def class.method` for class methods
|
* prefer `class << self; def method; end` over `def self.method` for class methods
|
||||||
* prefer `{ ... }` over `do ... end` for single-line blocks, avoid using `{ ... }` for multi-line blocks
|
* prefer `{ ... }` over `do ... end` for single-line blocks, avoid using `{ ... }` for multi-line blocks
|
||||||
* avoid `return` when not required
|
* avoid `return` when not required
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue