Skip to content

Instantly share code, notes, and snippets.

@lorenzorapetti
Last active April 5, 2017 14:53
Show Gist options
  • Save lorenzorapetti/3b2acb09e8fd0dbd97dc498748ce6eeb to your computer and use it in GitHub Desktop.
Save lorenzorapetti/3b2acb09e8fd0dbd97dc498748ce6eeb to your computer and use it in GitHub Desktop.
Rubocop configuration
AllCops:
TargetRubyVersion: 2.4
TargetRailsVersion: 5.0.2
Rails:
Enabled: true
Lint/AmbiguousBlockAssociation:
Enabled: false
Metrics/AbcSize:
Max: 20
Metrics/ClassLength:
Max: 300
Metrics/LineLength:
Max: 120
Metrics/MethodLength:
Max: 30
Metrics/ModuleLength:
Max: 300
Rails/HasAndBelongsToMany:
Enabled: false
Style/AccessModifierIndentation:
EnforcedStyle: outdent
Style/AlignHash:
EnforcedHashRocketStyle: table
EnforcedColonStyle: table
Style/AsciiComments:
Enabled: false
Style/BracesAroundHashParameters:
EnforcedStyle: context_dependent
Style/Documentation:
Enabled: false
Style/EmptyMethod:
EnforcedStyle: expanded
Style/FrozenStringLiteralComment:
Enabled: false
Style/GlobalVars:
Enabled: false
Style/IfUnlessModifier:
MaxLineLength: 120
Style/IndentArray:
EnforcedStyle: consistent
Style/IndentHash:
EnforcedStyle: consistent
Style/MultilineAssignmentLayout:
EnforcedStyle: same_line
Style/MultilineMethodCallIndentation:
EnforcedStyle: indented
Style/MultilineOperationIndentation:
EnforcedStyle: indented
Style/OptionHash:
Enabled: true
Style/RegexpLiteral:
AllowInnerSlashes: true
Style/StringLiterals:
EnforcedStyle: double_quotes
Style/StringLiteralsInInterpolation:
EnforcedStyle: double_quotes
Style/TernaryParentheses:
EnforcedStyle: require_parentheses_when_complex
Style/WhileUntilModifier:
MaxLineLength: 120
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment