This rule is based on a rule from PHP_CodeSniffer.
Details
Details
- Reviewers
epriestley - Group Reviewers
Blessed Reviewers - Commits
- rARCb251615716b3: Add a rule to the XHPAST linter to check for whitespace before a semicolon.
Wrote and executed unit tests.
Diff Detail
Diff Detail
- Repository
- rARC Arcanist
- Lint
Lint Skipped - Unit
Tests Skipped
Event Timeline
Comment Actions
The only exception I can think of is that we might have some of this kind of thing:
for ( ; $ii < $limit; $ii++) {
...but that's probably better written as:
for (/* empty */; $ii < $limit; $ii++) {
...or similar.
Comment Actions
Closed by commit rARCb251615716b3 (authored by @joshuaspence, committed by @epriestley).