rubocop/rubocop-styles.yml
Style/CollectionMethods:
# Mapping from undesired method to desired_method
# e.g. to use `detect` over `find` since find is a reserved AR keyword:
#
# CollectionMethods:
# PreferredMethods:
# find: detect
Enabled: true
PreferredMethods:
find: detect
each_with_index: 'each.with_index'
Style/StringLiterals:
EnforcedStyle: double_quotes
Style/ClassAndModuleChildren:
EnforcedStyle: nested
Style/RaiseArgs:
EnforcedStyle: compact
Style/SymbolArray:
EnforcedStyle: brackets
Style/WordArray:
EnforcedStyle: brackets
Style/RedundantRegexpCharacterClass:
Enabled: true
Style/RedundantRegexpEscape:
Enabled: true
Style/ArrayCoercion:
Enabled: true
Style/BisectedAttrAccessor:
Enabled: true
Style/HashTransformKeys:
Enabled: true
Style/HashTransformValues:
Enabled: true
Style/HashEachMethods:
Enabled: true
Style/CaseLikeIf:
Enabled: true
Style/RedundantAssignment:
Enabled: true
Style/RedundantFetchBlock:
Enabled: true
Style/RedundantFileExtensionInRequire:
Enabled: true
Style/SingleArgumentDig:
Enabled: true
Style/CombinableLoops:
Enabled: true
Style/KeywordParametersOrder:
Enabled: true
Style/RedundantSelfAssignment:
Enabled: true
Style/SoleNestedConditional:
Enabled: true
AllowModifier: true
Style/CollectionCompact:
Enabled: true
Style/DocumentDynamicEvalDefinition:
Enabled: true
Style/NegatedIfElseCondition:
Enabled: true
Style/NilLambda:
Enabled: true
#################
# Disabled cops #
#################
Style/Documentation:
Enabled: false
Style/Lambda:
Enabled: false
Style/IfUnlessModifier:
Enabled: false
Style/GuardClause:
Enabled: false
Style/StringConcatenation:
Enabled: false
Style/HashLikeCase:
Enabled: false
Style/OptionalBooleanParameter:
Enabled: false
Style/SlicingWithRange:
Enabled: false
Style/ExponentialNotation:
Enabled: false
Style/AccessorGrouping:
Enabled: false
Style/ExplicitBlockArgument:
Enabled: false
Style/GlobalStdStream:
Enabled: false
Style/HashAsLastArrayItem:
Enabled: false
Style/ArgumentsForwarding:
Enabled: false
Style/RedundantArgument:
Enabled: false
Style/SwapValues:
Enabled: false
Style/FetchEnvVar:
Enabled: false
Style/YodaCondition:
Enabled: false
Style/HashSyntax:
Enabled: false