Skip to content
This repository has been archived by the owner on Jan 6, 2020. It is now read-only.

Commit

Permalink
Don't enforce double-quotes for strings.
Browse files Browse the repository at this point in the history
There are times when it's appropriate to use single quotes.
Specifically when maintaining consistency within an area of the
codebase (this linter it typically only applied to the diffs, and
therefore won't take into account existing uses of single-quotes - eg
alphagov/whitehall#2270).  It therefore doesn't
make sense to enforce this automatically.
  • Loading branch information
alext committed Jul 13, 2015
1 parent 3715b00 commit 67e3ea7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion configs/rubocop/gds-ruby-styleguide.yml
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ StringConversionInInterpolation:
# Supports --auto-correct
StringLiterals:
Description: Checks if uses of quotes match the configured preference.
Enabled: true
Enabled: false
EnforcedStyle: double_quotes
SupportedStyles:
- single_quotes
Expand Down

0 comments on commit 67e3ea7

Please sign in to comment.