]> khamidou — GitHub mirrors - arcanist.git/commit
Lint `TRUE`, `nUlL`, etc., for Phabricator conventions
authorepriestley <git@epriestley.com>
Mon, 15 Apr 2013 17:22:56 +0000 (10:22 -0700)
committerepriestley <git@epriestley.com>
Mon, 15 Apr 2013 17:22:56 +0000 (10:22 -0700)
commit2df40b544542dacb1555a1ce115c86721e88dfad
tree4abe23ede99eefdf6ceba8b119816e49a8f7e9e0
parente573610ce4117b6b69d95b54e6b4014d5d68f485
Lint `TRUE`, `nUlL`, etc., for Phabricator conventions

Summary: Detect and fix unconventional spellings of `true`, `false`, `null` and `array` (these are the only keywords I've seen spelled unconventionally in the wild).

Test Plan: Unit tests.

Reviewers: DurhamGoode, btrahan, vrana

Reviewed By: vrana

CC: aran
Maniphest Tasks: T2985

Differential Revision: https://secure.phabricator.com/D5686
src/lint/linter/ArcanistXHPASTLinter.php
src/lint/linter/__tests__/xhpast/keyword-casing.lint-test [new file with mode: 0644]