Skip to content

Instantly share code, notes, and snippets.

@naoty
Last active October 4, 2015 01:32
Show Gist options
  • Save naoty/8c022b252e673fce459a to your computer and use it in GitHub Desktop.
Save naoty/8c022b252e673fce459a to your computer and use it in GitHub Desktop.
AllCops:
RunRailsCops: true
Exclude:
- ",/**/*"
- ".git/**/*"
- "bin/*"
- "db/schema.rb"
- "db/migrate/*.rb"
- "log/**/*"
- "public/**/*"
- "tmp/**/*"
Metrics/AbcSize:
Max: 25
Metrics/MethodLength:
Max: 30
Metrics/LineLength:
Max: 120
Exclude:
- "config/**/*.rb"
- "spec/factories/**/*.rb"
- "Guardfile"
Style/AndOr:
EnforcedStyle: conditionals
Style/ClassAndModuleChildren:
Enabled: false
Style/Documentation:
Enabled: false
Style/DoubleNegation:
Enabled: false
Style/FormatString:
EnforcedStyle: percent
Style/GuardClause:
MinBodyLength: 5
Style/IfUnlessModifier:
Enabled: false
Style/MultilineTernaryOperator:
Enabled: false
Style/Lambda:
Enabled: false
Style/PredicateName:
NamePrefixBlacklist:
- is_
- have_
Style/SignalException:
EnforcedStyle: only_raise
Style/SingleLineBlockParams:
Enabled: false
Style/SpaceAroundBlockParameters:
Enabled: false
Style/StringLiterals:
EnforcedStyle: double_quotes
Style/UnlessElse:
Enabled: false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment