.rubocop.yml
inherit_from: .rubocop_todo.yml
AllCops:
Include:
- 'Guardfile'
- '*.gemspec'
- '**/*.rake'
Exclude:
- 'tmp/**/*'
- 'vendor/**/*'
- '.cache/**/*'
LineLength:
Max: 100
MethodLength:
Max: 17
ParameterLists:
Max: 6
CyclomaticComplexity:
Max: 8
PerceivedComplexity:
Max: 10
AbcSize:
Max: 44
WordArray:
Enabled: false
RegexpLiteral:
Exclude:
- 'Guardfile'
- '*.gemspec'
EmptyElse:
Enabled: false
AlignHash:
# Alignment of entries using hash rocket as separator. Valid values are:
#
# key - left alignment of keys
# 'a' => 2
# 'bb' => 3
# separator - alignment of hash rockets, keys are right aligned
# 'a' => 2
# 'bb' => 3
# table - left alignment of keys, hash rockets, and values
# 'a' => 2
# 'bb' => 3
EnforcedHashRocketStyle: table
# Alignment of entries using colon as separator. Valid values are:
#
# key - left alignment of keys
# a: 0
# bb: 1
# separator - alignment of colons, keys are right aligned
# a: 0
# bb: 1
# table - left alignment of keys and values
# a: 0
# bb: 1
EnforcedColonStyle: separator
# TODO
Documentation:
Enabled: false
# TODO: This should not register offences for non keyword hashes.
BracesAroundHashParameters:
Enabled: false
# TODO: Shorten to 100.
ClassLength:
Max: 137
# This cop should consider symmetries.
GuardClause:
Enabled: false
ModuleLength:
Enabled: false
Security/JSONLoad:
Enabled: false
Security/MarshalLoad:
Enabled: false