AllCops: TargetRubyVersion: 2.3 DisplayStyleGuide: false Exclude: - 'vendor/**/*' - 'spec/**/*' Rails: Enabled: true Metrics/LineLength: Max: 120 Style/AlignParameters: # Alignment of parameters in multi-line method calls. # # The `with_first_parameter` style aligns the following lines along the same # column as the first parameter. # # method_call(a, # b) # # The `with_fixed_indentation` style aligns the following lines with one # level of indentation relative to the start of the line with the method call. # # method_call(a, # b) EnforcedStyle: with_fixed_indentation SupportedStyles: - with_first_parameter - with_fixed_indentation # Multi-line method chaining should be done with trailing dots. Style/DotPosition: EnforcedStyle: trailing SupportedStyles: - leading - trailing Style/Documentation: Description: 'Document classes and non-namespace modules.' Enabled: false Exclude: - 'spec/**/*' - 'test/**/*' Style/FileName: Enabled: false Style/TrailingCommaInArguments: # If `comma`, the cop requires a comma after the last argument, but only for # parenthesized method calls where each argument is on its own line. # If `consistent_comma`, the cop requires a comma after the last argument, # for all parenthesized method calls with arguments. EnforcedStyleForMultiline: comma Style/TrailingCommaInLiteral: # If `comma`, the cop requires a comma after the last item in an array or # hash, but only when each item is on its own line. # If `consistent_comma`, the cop requires a comma after the last item of all # non-empty array and hash literals. EnforcedStyleForMultiline: comma Style/StringLiterals: EnforcedStyle: double_quotes SupportedStyles: - single_quotes - double_quotes # If true, strings which span multiple lines using \ for continuation must # use the same type of quotes on each line. ConsistentQuotesInMultiline: false Style/StringLiteralsInInterpolation: EnforcedStyle: double_quotes SupportedStyles: - single_quotes - double_quotes Style/UnneededInterpolation: Enabled: false Style/HashSyntax: EnforcedStyle: no_mixed_keys SupportedStyles: # checks for 1.9 syntax (e.g. {a: 1}) for all symbol keys - ruby19 # checks for hash rocket syntax for all hashes - hash_rockets # forbids mixed key syntaxes (e.g. {a: 1, :b => 2}) - no_mixed_keys # enforces both ruby19 and no_mixed_keys styles - ruby19_no_mixed_keys # Force hashes that have a symbol value to use hash rockets UseHashRocketsWithSymbolValues: false # Do not suggest { a?: 1 } over { :a? => 1 } in ruby19 style PreferHashRocketsForNonAlnumEndingSymbols: true