Pattern: Malformed qouted symbol
Issue: -
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.
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"