Skip to content

Instantly share code, notes, and snippets.

@avdept
Last active November 15, 2017 09:51
Show Gist options
  • Save avdept/2f7d7b785723717f0237a46f555d55e5 to your computer and use it in GitHub Desktop.
Save avdept/2f7d7b785723717f0237a46f555d55e5 to your computer and use it in GitHub Desktop.
My personal rubocop config. Will add more soon
Metrics/LineLength:
Max: 120
AllCops:
TargetRubyVersion: 2.2
# Too short methods lead to extraction of single-use methods, which can make
# the code easier to read (by naming things), but can also clutter the class
Metrics/MethodLength:
Max: 20
Metrics/ClassLength:
Max: 150
Style/HashSyntax:
EnforcedStyle: ruby19_no_mixed_keys
Style/CollectionMethods:
Enabled: true
PreferredMethods:
# inject seems more common in the community.
reduce: "inject"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment