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
Unknown Object (File)
Mon, Nov 18, 12:42 PM
Unknown Object (File)
Thu, Nov 14, 3:41 AM
Unknown Object (File)
Mon, Nov 11, 5:55 AM
Unknown Object (File)
Mon, Nov 11, 5:55 AM
Unknown Object (File)
Mon, Nov 11, 5:55 AM
Unknown Object (File)
Mon, Nov 11, 5:54 AM
Unknown Object (File)
Sat, Nov 9, 7:41 PM
Unknown Object (File)
Thu, Nov 7, 3:46 AM
Subscribers

Details

Summary

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

Test Plan

Added test case.

Diff Detail

Repository
rARC Arcanist
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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
30

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.