Page MenuHomePhabricator

Fix two linter issues
ClosedPublic

Authored by epriestley on Dec 30 2014, 3:00 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Apr 11, 8:42 AM
Unknown Object (File)
Wed, Apr 3, 1:23 PM
Unknown Object (File)
Feb 16 2024, 11:21 AM
Unknown Object (File)
Feb 4 2024, 5:37 AM
Unknown Object (File)
Feb 2 2024, 8:23 PM
Unknown Object (File)
Feb 2 2024, 6:37 PM
Unknown Object (File)
Dec 23 2023, 8:33 PM
Unknown Object (File)
Dec 23 2023, 1:19 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.