Page MenuHomePhabricator

Add a linter rule for unary postfix expression spacing
ClosedPublic

Authored by joshuaspence on Aug 6 2015, 12:40 AM.
Tags
None
Referenced Files
F15460703: D13805.id33343.diff
Tue, Apr 1, 1:23 AM
F15460499: D13805.id.diff
Mon, Mar 31, 11:19 PM
F15450632: D13805.id.diff
Fri, Mar 28, 4:48 PM
F15450631: D13805.id33345.diff
Fri, Mar 28, 4:48 PM
F15450629: D13805.id33343.diff
Fri, Mar 28, 4:48 PM
F15450628: D13805.id33344.diff
Fri, Mar 28, 4:48 PM
F15450425: D13805.diff
Fri, Mar 28, 3:40 PM
F15442416: D13805.diff
Wed, Mar 26, 11:19 PM
Subscribers

Details

Summary

Unary postfix expressions should not have a space before the operator.

Test Plan

Added test case.

Diff Detail

Repository
rARC Arcanist
Branch
master
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 7504
Build 8048: [Placeholder Plan] Wait for 30 Seconds
Build 8047: arc lint + arc unit

Event Timeline

joshuaspence retitled this revision from to Add a linter rule for unary postfix expression spacing.
joshuaspence updated this object.
joshuaspence edited the test plan for this revision. (Show Details)
joshuaspence added a reviewer: epriestley.
epriestley edited edge metadata.
epriestley added inline comments.
src/lint/linter/xhpast/rules/ArcanistUnaryPostfixExpressionSpacingXHPASTLinterRule.php
29

Looks like this is actually testing "preceded", not "followed"?

This revision is now accepted and ready to land.Aug 6 2015, 12:42 AM
joshuaspence edited edge metadata.

Fix linter message

This revision was automatically updated to reflect the committed changes.