... | ... | @@ -45,7 +45,7 @@ Partials should have a comment at the start of the file explaining what the part |
|
|
Use single quotes for normal strings (`'hello there'`), double quotes when doing interpolation (`"Project #{project.id}"`) or when using special characters (`"\n"`).
|
|
|
|
|
|
### If/unless
|
|
|
Prefer `if` over `unless`. (TODO: Update rubocop).
|
|
|
Generally prefer `if` over `unless`. (TODO: Update rubocop).
|
|
|
|
|
|
Quick return statements are allowed but require a newline after the quick return:
|
|
|
```ruby
|
... | ... | @@ -64,6 +64,4 @@ def bla |
|
|
|
|
|
<more code>
|
|
|
end
|
|
|
```
|
|
|
|
|
|
|
|
|
``` |
|
|
\ No newline at end of file |