Skip to content

Instantly share code, notes, and snippets.

@danielvamosi
Forked from gdotdesign/.rubocop.yml
Created August 2, 2015 15:07
Show Gist options
  • Save danielvamosi/ac2df70b773fc8d3d1cb to your computer and use it in GitHub Desktop.
Save danielvamosi/ac2df70b773fc8d3d1cb to your computer and use it in GitHub Desktop.
DiNa Rubocop Config
AllCops:
RunRailsCops: true
Documentation:
Enabled: false
Style/AlignHash:
Enabled: false
Style/AlignParameters:
Enabled: false
Style/AndOr:
EnforcedStyle: conditionals
Style/BarePercentLiterals:
EnforcedStyle: percent_q
Style/BracesAroundHashParameters:
Enabled: false
Style/CaseIndentation:
IndentWhenRelativeTo: end
Style/ClassCheck:
Enabled: false
Style/DotPosition:
EnforcedStyle: trailing
Style/EmptyLineBetweenDefs:
AllowAdjacentOneLineDefs: true
Style/Encoding:
EnforcedStyle: when_needed
Style/For:
EnforcedStyle: each
Style/IfUnlessModifier:
MaxLineLength: 100
Style/RedundantReturn:
AllowMultipleReturnValues: true
Style/Semicolon:
AllowAsExpressionSeparator: true
Style/SingleLineBlockParams:
Enabled: false
Style/TrivialAccessors:
ExactNameMatch: false
Style/WhileUntilModifier:
MaxLineLength: 100
##################### Metrics ##################################
Metrics/ClassLength:
Max: 200
Metrics/LineLength:
Max: 100
Metrics/MethodLength:
Max: 20
##################### Lint ##################################
Lint/DefEndAlignment:
AlignWith: def
@ggpasqualino
Copy link

AllCops:
  RunRailsCops: true

is now

Rails:
  Enabled: true

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment