Skip to content

Instantly share code, notes, and snippets.

@s-mage
Created July 17, 2017 15:18
Show Gist options
  • Save s-mage/e95342e719a2728d0d00658515336f72 to your computer and use it in GitHub Desktop.
Save s-mage/e95342e719a2728d0d00658515336f72 to your computer and use it in GitHub Desktop.
AllCops:
Exclude:
- 'vendor/**/*'
- 'spec/fixtures/**/*'
- 'tmp/**/*'
- 'vagrant/**/*'
TargetRubyVersion: 2.3
Lint/EndAlignment:
EnforcedStyleAlignWith: variable
Metrics/BlockLength:
Exclude:
- 'Rakefile'
- '**/*.rake'
- 'spec/**/*.rb'
Metrics/ModuleLength:
Exclude:
- 'spec/**/*.rb'
Metrics/MethodLength:
Max: 25
Metrics/ClassLength:
Max: 1000
Style/HashSyntax:
EnforcedStyle: hash_rockets
Style/FrozenStringLiteralComment:
Enabled: false
Style/AsciiComments:
Enabled: false
Style/AndOr:
Enabled: false
Style/StringLiterals:
Enabled: false
Style/PercentLiteralDelimiters:
PreferredDelimiters:
default: '[]'
'%r': '{}'
'%w': '[]'
'%i': '[]'
Style/AlignParameters:
EnforcedStyle: with_fixed_indentation
Style/RedundantSelf:
Enabled: false
Style/DotPosition:
EnforcedStyle: trailing
Style/MultilineTernaryOperator:
Enabled: false
Style/Alias:
EnforcedStyle: prefer_alias_method
Style/IndentHash:
EnforcedStyle: consistent
Style/IndentArray:
EnforcedStyle: consistent
Style/ClassAndModuleChildren:
Enabled: false
Style/Lambda:
EnforcedStyle: literal
Style/GuardClause:
Enabled: false
Style/NumericPredicate:
EnforcedStyle: comparison
Style/CaseIndentation:
Enabled: false
Style/MultilineMethodCallBraceLayout:
Enabled: false
Documentation:
Enabled: false
Rails:
Enabled: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment