Skip to content
This repository has been archived by the owner on May 10, 2019. It is now read-only.

Commit

Permalink
Add rule about trailing newlines
Browse files Browse the repository at this point in the history
Trailing newlines are always useful and should be mandated.
  • Loading branch information
bradwright committed Apr 7, 2014
1 parent b956f24 commit a115904
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ruby.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@

- Keep lines fewer than 80 characters.

- Never leave trailing whitespace.
- Never leave trailing whitespace, except:

- Always leave a trailing newline in the file to keep compatibility with command-line tools.

- Use spaces around operators, after commas, colons and semicolons,
around `{` and before `}`.
Expand Down

0 comments on commit a115904

Please sign in to comment.