Skip to content

Files

Latest commit

 

History

History
39 lines (26 loc) · 623 Bytes

Style-QuotedSymbols.md

File metadata and controls

39 lines (26 loc) · 623 Bytes

Pattern: Malformed qouted symbol

Issue: -

Description

Checks if the quotes used for quoted symbols match the configured defaults. By default uses the same configuration as Style/StringLiterals.

String interpolation is always kept in double quotes.

Examples

EnforcedStyle: same_as_string_literals (default) / single_quotes

# bad
:"abc-def"

# good
:'abc-def'
:"#{str}"
:"a\'b"

EnforcedStyle: double_quotes

# bad
:'abc-def'

# good
:"abc-def"
:"#{str}"
:"a\'b"

Further Reading