Page MenuHomePhabricator

Fix two linter issues
ClosedPublic

Authored by epriestley on Dec 30 2014, 3:00 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Nov 18, 10:59 PM
Unknown Object (File)
Sun, Nov 17, 2:30 PM
Unknown Object (File)
Tue, Oct 29, 9:12 AM
Unknown Object (File)
Tue, Oct 29, 12:43 AM
Unknown Object (File)
Oct 20 2024, 5:50 PM
Unknown Object (File)
Oct 17 2024, 7:25 AM
Unknown Object (File)
Sep 15 2024, 2:09 AM
Unknown Object (File)
Sep 15 2024, 2:08 AM
Subscribers

Details

Summary
  • The "exclude static variable access" branch in XHPAST incorrectly excluded all variables in a function or method which used any static access (we were selecting the wrong root node for exclusion).
  • The "PHPLinter" regexp did not work with 5.4.30. Make it more permissive in what it parses.
Test Plan
  • Added a failing unit test for the variable case and made it pass.
  • PHPLinter tests now pass under 5.4.30

Diff Detail

Repository
rARC Arcanist
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

epriestley retitled this revision from to Fix two linter issues.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added reviewers: joshuaspence, btrahan.
btrahan edited edge metadata.

Yay test coverage

This revision is now accepted and ready to land.Dec 30 2014, 6:01 PM
This revision was automatically updated to reflect the committed changes.