Page MenuHomePhabricator

Improve the robustness of the "alias function" linter rule
ClosedPublic

Authored by joshuaspence on May 19 2015, 8:12 AM.
Tags
None
Referenced Files
F15454501: D12921.diff
Sat, Mar 29, 6:50 PM
F15421434: D12921.id31084.diff
Fri, Mar 21, 11:45 PM
F15388044: D12921.id31161.diff
Sat, Mar 15, 3:14 AM
Unknown Object (File)
Feb 25 2025, 4:58 AM
Unknown Object (File)
Feb 20 2025, 4:28 AM
Unknown Object (File)
Feb 17 2025, 10:36 AM
Unknown Object (File)
Feb 11 2025, 1:43 AM
Unknown Object (File)
Jan 30 2025, 10:05 PM
Subscribers

Details

Summary

Improve the ArcanistXHPASTLinter::LINT_ALIAS_FUNCTION linter rule. Currently this rule does not correctly handle alias functions which are not strictly lowercase.

Test Plan

Added a test case.

Diff Detail

Repository
rARC Arcanist
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

joshuaspence retitled this revision from to Improve the robustness of the "alias function" linter rule.
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/ArcanistXHPASTLinter.php
4136

Sort of irrelevant since these should never be utf8, but prefer phutil_utf8_strtolower() for consistency?

This revision is now accepted and ready to land.May 19 2015, 1:34 PM
joshuaspence edited edge metadata.

Use phutil_utf8_strtolower

This revision was automatically updated to reflect the committed changes.