]> khamidou — GitHub mirrors - arcanist.git/commit
Add a linter rule for hexadecimal number casing
authorJoshua Spence <josh@freelancer.com>
Tue, 1 Dec 2015 20:41:37 +0000 (07:41 +1100)
committerJoshua Spence <josh@freelancer.com>
Tue, 1 Dec 2015 20:47:16 +0000 (07:47 +1100)
commit00efcd294fd01b4b571bc3a3e8ecb7342fa57ef7
treebfc55e2f311f0cadeeac147d64a373d024fbcec4
parent5218ec357c5cf8ecb9390a5efd4a90fdeddfb429
Add a linter rule for hexadecimal number casing

Summary: Hexadecimal numbers should be written as `0xFF` and not `0xff` or `0Xff`.

Test Plan: Added test cases.

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: Korvin

Differential Revision: https://secure.phabricator.com/D14612
src/__phutil_library_map__.php
src/lint/linter/xhpast/rules/ArcanistHexadecimalNumericScalarCasingXHPASTLinterRule.php [new file with mode: 0644]
src/lint/linter/xhpast/rules/__tests__/ArcanistHexadecimalNumericScalarCasingXHPASTLinterRuleTestCase.php [new file with mode: 0644]
src/lint/linter/xhpast/rules/__tests__/hexadecimal-numeric-scalar-casing/hexadecimal.lint-test [new file with mode: 0644]