]> khamidou — GitHub mirrors - arcanist.git/commit
Add a rule to the XHPAST linter to check for whitespace before a semicolon.
authorJoshua Spence <josh@joshuaspence.com>
Mon, 19 May 2014 14:48:58 +0000 (07:48 -0700)
committerepriestley <git@epriestley.com>
Mon, 19 May 2014 14:48:58 +0000 (07:48 -0700)
commitb251615716b39d61a2d676eed36f2ec91bcf1beb
tree55ee7eafd0e0c97e6ac3bae576b076b6b3dab5e2
parent566c7e9c5cf43360db481e60b49a876426027afc
Add a rule to the XHPAST linter to check for whitespace before a semicolon.

Summary: This rule is based on a rule from [[https://github.com/squizlabs/PHP_CodeSniffer/blob/master/CodeSniffer/Standards/Squiz/Sniffs/WhiteSpace/SemicolonSpacingSniff.php | 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/D9195
src/lint/linter/ArcanistXHPASTLinter.php
src/lint/linter/__tests__/xhpast/semicolon-spacing.lint-test [new file with mode: 0644]