Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add mixed option for quote_style #315

Merged
merged 1 commit into from
Dec 27, 2023
Merged

Conversation

lockland
Copy link
Contributor

@lockland lockland commented Dec 15, 2023

Sometimes when we are working in a legacy code formatting a string changing its quote style is not something we really want to because it makes a PR review harder as a lot of modifications may be made.

With this option a developer can choose if that modification is needed or not

issue: #258

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: ruby-formatter#258
@lockland lockland marked this pull request as ready for review December 15, 2023 20:49
@kzkn
Copy link
Member

kzkn commented Dec 27, 2023

Rufo's basic stance is that we don't want to increase the number of settings. However, it seems that there are many cases where this setting would be a problem if it were not there. I would like to make an exception and accept a modification to add this setting.

@lockland thanks!

Copy link

codecov bot commented Dec 27, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (972825d) 97.15% compared to head (e3aaf60) 97.16%.
Report is 7 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #315   +/-   ##
=======================================
  Coverage   97.15%   97.16%           
=======================================
  Files          19       19           
  Lines        2992     2993    +1     
=======================================
+ Hits         2907     2908    +1     
  Misses         85       85           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@kzkn kzkn merged commit 7b2c484 into ruby-formatter:master Dec 27, 2023
6 checks passed
@lockland
Copy link
Contributor Author

lockland commented Dec 27, 2023

Thanks @kzkn for your help!!

I would like to say that this stance makes a lot of sense to me and congrats you all by this amazing job you are doing in this project that allows me being more productive and to focus on what matter which is the code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants