Page MenuHomePhabricator

Update xhpast linter rules for new function AST format
ClosedPublic

Authored by richardvanvelzen on Apr 28 2016, 3:03 PM.
Tags
None
Referenced Files
F13221453: D15814.diff
Sun, May 19, 2:47 AM
F13213242: D15814.id38106.diff
Fri, May 17, 7:33 AM
F13212371: D15814.vson.whitespaceignore-most.diff
Fri, May 17, 6:38 AM
F13210003: D15814.id.diff
Fri, May 17, 3:17 AM
F13203849: D15814.diff
Wed, May 15, 12:09 AM
F13199470: D15814.vson.whitespaceignore-most.diff
Mon, May 13, 3:03 PM
F13186711: D15814.diff
Sat, May 11, 3:50 AM
Unknown Object (File)
Tue, May 7, 6:41 AM
Subscribers

Details

Summary

See D15678. A node containing a return type hint is added right before the statement body node. This updates all relevant linter rules to now retrieve the body from the correct index.

Test Plan

Ran arc unit --everything, inspected every single message to make sure all xhpast test cases succeeded. Also grepped for getChildByIndex(5 and getChildOfType(5.

Diff Detail

Repository
rARC Arcanist
Branch
xhpast-return-types
Lint
Lint Passed
Unit
Test Failures
Build Status
Buildable 11968
Build 15050: arc lint + arc unit

Unit TestsFailed

TimeTest
152 msArcanistCppcheckLinterTestCase::Unknown Unit Message ("")
In 'zblair.lint-test', lint raised error on line 15 at char 0, but nothing was expected: Mismatching allocation and deallocation: buf
1,367 msArcanistJSHintLinterTestCase::Unknown Unit Message ("")
In 'jshint.lint-test', expected lint to raise error on line 9 at char 0, but no error was raised. Actually raised: warning at line 3, char 8: W033 JSHintW033 error at line 7, char 1: E019 JSHintE019
67 msArcanistAbstractMethodBodyXHPASTLinterRuleTestCase::Unknown Unit Message ("")
7 assertions passed.
28 msArcanistAbstractPrivateMethodXHPASTLinterRuleTestCase::Unknown Unit Message ("")
3 assertions passed.
35 msArcanistAliasFunctionXHPASTLinterRuleTestCase::Unknown Unit Message ("")
4 assertions passed.
View Full Test Results (2 Failed · 120 Passed · 31 Skipped)

Event Timeline

richardvanvelzen retitled this revision from to Update xhpast linter rules for new function AST format.
richardvanvelzen updated this object.
richardvanvelzen edited the test plan for this revision. (Show Details)
richardvanvelzen added a reviewer: epriestley.
epriestley edited edge metadata.

Those test cases are unrelated version issues.

This revision is now accepted and ready to land.Apr 29 2016, 12:24 PM
This revision was automatically updated to reflect the committed changes.