]> khamidou — GitHub mirrors - arcanist.git/commit
Add a "binary integer casing" linter rule
authorJoshua Spence <josh@freelancer.com>
Wed, 2 Dec 2015 22:47:27 +0000 (09:47 +1100)
committerJoshua Spence <josh@freelancer.com>
Wed, 2 Dec 2015 22:47:27 +0000 (09:47 +1100)
commit3c193984da6f415e406ce811c2ac1ff93d30a5e1
tree33c3c9fa1067965d4c5265797f0df937da77aede
parentae3c2cb0e17296ed29ef9d09d02a9f5c0daa6791
Add a "binary integer casing" linter rule

Summary: Adds a linter rule which ensures that binary integers are written in lowercase (i.e. `0b1` instead of `0B1`).

Test Plan: Added test cases.

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: Korvin

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