AllCops: Includes: - '**/Gemfile' - '**/Rakefile' Style/EmptyLinesAroundClassBody: Enabled: false Style/EmptyLinesAroundModuleBody: Enabled: false Style/ModuleFunction: Enabled: false Metrics/AbcSize: Enabled: true Max: 20 # Avoid long parameter lists ParameterLists: Max: 3 CountKeywordArgs: true MethodLength: CountComments: false Max: 15 # TODO: lower to 15 ClassLength: CountComments: false Max: 132 # TODO: lower to 100 CyclomaticComplexity: Max: 6 # TODO: lower to 6 # Avoid more than `Max` levels of nesting. BlockNesting: Max: 3 # Align with the style guide. CollectionMethods: PreferredMethods: collect: 'map' inject: 'reduce' find_all: 'select' AccessModifierIndentation: Enabled: false # Limit line length LineLength: Enabled: false # Disable documentation checking until a class needs to be documented once Documentation: Enabled: false # Not all trivial readers/writers can be defined with attr_* methods TrivialAccessors: Enabled: false # Enforce Ruby 1.8-compatible hash syntax # HashSyntax: # EnforcedStyle: hash_rockets # No spaces inside hash literals # SpaceInsideHashLiteralBraces: # EnforcedStyle: no_space Style/MultilineOperationIndentation: Enabled: true EnforcedStyle: indented # Allow dots at the end of lines DotPosition: Enabled: false # Don't require magic comment at the top of every file Encoding: Enabled: false # Enforce outdenting of access modifiers (i.e. public, private, protected) # AccessModifierIndentation: # EnforcedStyle: outdent EmptyLinesAroundAccessModifier: Enabled: true # Align ends correctly EndAlignment: AlignWith: variable # Indentation of when/else # CaseIndentation: # IndentWhenRelativeTo: end # IndentOneStep: false # Use the old lambda literal syntax # Lambda: # Enabled: false # Semicolon: # Exclude: # - 'spec/support/'