-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add mixed option for quote_style
Sometimes when we are working in a legacy code formatting a string changing its quote style is not something we really want because it makes a PR review hard as a lot of modifications may be made. With this option a developer can choose if that modification is needed or not issue: #258
- Loading branch information
Showing
4 changed files
with
74 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
#~# ORIGINAL | ||
#~# quote_style: :mixed | ||
|
||
'a great string' | ||
"a great string" | ||
|
||
#~# EXPECTED | ||
'a great string' | ||
"a great string" | ||
|
||
#~# ORIGINAL | ||
#~# quote_style: :mixed | ||
|
||
'π' | ||
"π" | ||
|
||
#~# EXPECTED | ||
'π' | ||
"π" | ||
|
||
#~# ORIGINAL | ||
#~# quote_style: :mixed | ||
|
||
'' | ||
"" | ||
|
||
#~# EXPECTED | ||
'' | ||
"" | ||
|
||
#~# ORIGINAL | ||
#~# quote_style: :mixed | ||
|
||
'import \"quotes\"' | ||
|
||
#~# EXPECTED | ||
'import \"quotes\"' | ||
|
||
#~# ORIGINAL | ||
#~# quote_style: :mixed | ||
|
||
"#{interpolation}" | ||
|
||
#~# EXPECTED | ||
"#{interpolation}" | ||
|
||
#~# ORIGINAL | ||
#~# quote_style: :mixed | ||
|
||
"\0 \x7e \e \n \r \t \u1f680 \'" | ||
|
||
#~# EXPECTED | ||
"\0 \x7e \e \n \r \t \u1f680 \'" | ||
|
||
#~# ORIGINAL | ||
#~# quote_style: :mixed | ||
|
||
%q(single) | ||
|
||
#~# EXPECTED | ||
%q(single) | ||
|
||
#~# ORIGINAL | ||
#~# quote_style: :mixed | ||
|
||
%Q(double) | ||
|
||
#~# EXPECTED | ||
%Q(double) |