Page MenuHomePhabricator

Fix two linter issues
ClosedPublic

Authored by epriestley on Dec 30 2014, 3:00 PM.
Tags
None
Referenced Files
F15161028: D11087.id26612.diff
Tue, Feb 18, 7:04 AM
F15160821: D11087.diff
Tue, Feb 18, 6:09 AM
Unknown Object (File)
Wed, Feb 12, 5:16 AM
Unknown Object (File)
Sat, Feb 8, 12:32 AM
Unknown Object (File)
Sat, Feb 8, 12:32 AM
Unknown Object (File)
Sat, Feb 8, 12:31 AM
Unknown Object (File)
Tue, Jan 28, 5:22 PM
Unknown Object (File)
Thu, Jan 23, 7:38 PM
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.