Open tagliala opened 4 years ago
Checklist
# Layout/ExtraSpacing, Style/StringLiterals foo = 'foo' foobar = 'foobar' # Layout/HashAlignment, Style/Style/TrailingCommaInHash hashie = { foo: :foo, foobar: :foobar } # Style/SymbolArray sym_arr = %i[one two three] # Style/TrailingCommaInArray sym_arr_ml = [ :one, :two, :three ] # Style/WordArray sym_arr = %w[one two three]
# Layout/ExtraSpacing, Style/StringLiterals foo = "foo" foobar = "foobar" # Layout/HashAlignment, Style/Style/TrailingCommaInHash hashie = { foo: :foo, foobar: :foobar, } # Style/SymbolArray sym_arr = [:one, :two, :three] # Style/TrailingCommaInArray sym_arr = [ :one, :two, :three, ] # Style/WordArray sym_arr = ["one", "two", "three"]
Layout/ExtraSpacing: AllowForAlignment: false Layout/HashAlignment: EnforcedColonStyle: key Style/StringLiterals: EnforcedStyle: double_quotes Style/SymbolArray: EnforcedStyle: brackets Style/TrailingCommaInArrayLiteral: EnforcedStyleForMultiline: consistent_comma Style/TrailingCommaInHashLiteral: EnforcedStyleForMultiline: consistent_comma Style/WordArray: EnforcedStyle: brackets
@cesidio about Style/StringLiterals, I think that it took ~10 years to convince us, but we have lost the battle since standard and stylelint are preferring single quotes
Style/StringLiterals
Checklist
Before
After