Skip to content

New rule: No Typographic Quotes #2011

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

Merged
merged 3 commits into from
May 16, 2025

Conversation

javiereguiluz
Copy link
Collaborator

Good typography requires using curly quotes, but in tech docs is common to use straight quotes. We do that in Symfony Docs, so this rule ensures that the right quotes are always used.

I developed this rule to avoid mistakes like this that I recently did in Symfony Docs:

wrong-quotes

More info:

@javiereguiluz
Copy link
Collaborator Author

I've done the required changes (and sorry for having deleted your commit with my force push 🙏)

@OskarStark OskarStark merged commit f63cd7e into OskarStark:develop May 16, 2025
6 of 8 checks passed
OskarStark added a commit that referenced this pull request May 16, 2025
* develop:
  New rule: No Typographic Quotes (#2011)
  Enhancement: Update dependencies in `composer.json` (#2010)
  Enhancement: Update dependencies in `composer.json` (#2009)
  Enhancement: Update dependencies in `composer.json` (#2008)
  Enhancement: Update dependencies in `composer.json` (#2007)
  composer(deps-dev): bump rector/rector from 2.0.15 to 2.0.16 (#2006)
  composer(deps-dev): bump phpunit/phpunit from 12.1.4 to 12.1.5 (#2005)
  composer(deps-dev): bump icanhazstring/composer-unused from 0.9.2 to 0.9.3 (#2004)
@OskarStark
Copy link
Owner

@javiereguiluz the 1.68.0 version is currently build. You can already prepare the PR on Symfony-docs 6.4 and enable the rule if you like. Thanks

@javiereguiluz javiereguiluz deleted the rule_quotes branch May 16, 2025 07:31
xabbuh added a commit to xabbuh/Twig that referenced this pull request May 17, 2025
fabpot added a commit to twigphp/Twig that referenced this pull request May 18, 2025
This PR was merged into the 3.x branch.

Discussion
----------

replace typographic quote with straigt single quote

make DOCtor-RST 1.68 happy and account for OskarStark/doctor-rst#2011

Commits
-------

057ea92 replace typographic quote with straigt single quote
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants