]> khamidou — GitHub mirrors - arcanist.git/commit
Add a linter rule for determining when single quotes should be used over double quotes.
authorJoshua Spence <josh@joshuaspence.com>
Sat, 17 May 2014 02:25:37 +0000 (19:25 -0700)
committerepriestley <git@epriestley.com>
Sat, 17 May 2014 02:26:55 +0000 (19:26 -0700)
commit35a26718d861fa9ff938bd15bcb117b0406a190a
tree48e0dcfd9fdb5793b2916d8dacf0384e72516de2
parent38eda3e86bb3bd82e93f0b70d180373873f405ab
Add a linter rule for determining when single quotes should be used over double quotes.

Summary: Personally, I am a strong fan of this rule. There is currently a similar rule provided by PHP_CodeSniffer.

Test Plan: Wrote and executed unit tests.

Reviewers: #blessed_reviewers, epriestley

Reviewed By: #blessed_reviewers, epriestley

Subscribers: epriestley, Korvin

Differential Revision: https://secure.phabricator.com/D9117
src/lint/linter/ArcanistXHPASTLinter.php
src/lint/linter/__tests__/xhpast/double-quote.lint-test [new file with mode: 0644]
src/lint/linter/__tests__/xhpast/switches.lint-test
src/lint/linter/__tests__/xhpast/wrong-concat-operator.lint-test