Created
September 18, 2014 04:04
-
-
Save dznz/220177c170e7490c2f2e to your computer and use it in GitHub Desktop.
My preferred Rubocop setup.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AllCops: | |
Excludes: | |
- setup_environment.rb | |
# Prefer a comma at the end of a multiline, to minimise diff changes and | |
# enable easier rearranging of lines. | |
TrailingComma: | |
EnforcedStyleForMultiline: comma | |
# Experimenting with the idea of having the `private`, `protected` | |
# declarations be at the same level of indent as the `class` keyword. | |
AccessModifierIndentation: | |
EnforcedStyle: outdent | |
# Don't bother complaining that utf-8 hasn't been specified as the encoding | |
# for every file. | |
Encoding: | |
Enabled: false | |
# The style guide claims multi-line chaining is "always ugly". Maybe. | |
# I happen to tolerate it in moderation. | |
Blocks: | |
Enabled: false |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment