Skip to content

Files

Latest commit

 

History

History
26 lines (15 loc) · 494 Bytes

no_unnecessary_double_quotes.md

File metadata and controls

26 lines (15 loc) · 494 Bytes

Pattern: Unnecessary double quotes

Issue: -

Description

This rule prohibits double quotes unless string interpolation is used or the string contains single quotes.

Examples

# Double quotes are discouraged:
foo = "bar"


# Unless string interpolation is used:
foo = "#{bar}baz"


# Or they prevent cumbersome escaping:
foo = "I'm just following the 'rules'"

Further Reading