Page MenuHomePhabricator

Add a linter rule for unary prefix expression spacing
ClosedPublic

Authored by joshuaspence on Aug 5 2015, 12:17 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Nov 23, 12:12 PM
Unknown Object (File)
Tue, Nov 19, 3:40 PM
Unknown Object (File)
Fri, Nov 15, 3:45 AM
Unknown Object (File)
Mon, Nov 11, 5:43 AM
Unknown Object (File)
Mon, Nov 11, 5:43 AM
Unknown Object (File)
Mon, Nov 11, 5:42 AM
Unknown Object (File)
Mon, Nov 11, 5:41 AM
Unknown Object (File)
Sun, Nov 10, 9:41 PM
Subscribers

Details

Summary

Add a linter rule to ensure that there is no space between the operator and the operand in a unary prefix expression.

Test Plan

Added test cases.

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 prefix 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/ArcanistUnaryPrefixExpressionSpacingXHPASTLinterRule.php
28

Maybe the more colloquial "followed" instead of technically-correct-but-unusual-in-common-use "succeeded"?

This revision is now accepted and ready to land.Aug 5 2015, 3:55 PM
joshuaspence marked an inline comment as done.
joshuaspence edited edge metadata.
  • Tweak linter message
  • Ignore print, echo and clone
This revision was automatically updated to reflect the committed changes.