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
F13920634: D13805.diff
Thu, Oct 10, 7:15 PM
Unknown Object (File)
Fri, Oct 4, 5:54 PM
Unknown Object (File)
Sat, Sep 21, 11:54 PM
Unknown Object (File)
Sat, Sep 21, 11:53 PM
Unknown Object (File)
Sat, Sep 21, 11:53 PM
Unknown Object (File)
Sat, Sep 21, 11:53 PM
Unknown Object (File)
Sat, Sep 21, 11:43 PM
Unknown Object (File)
Sun, Sep 15, 5:30 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 7505
Build 8050: [Placeholder Plan] Wait for 30 Seconds
Build 8049: 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
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.