As titled, this diff improves the linter by lowercasing all the blacklisted function/method names configured in xhpast.deprecated.functions. This change allows us to declare the blacklisted items in their original case, just for look and feel purpose.
Details
Details
Diff Detail
Diff Detail
- Repository
- rARC Arcanist
- Branch
- thai-fix-ArcanistDeprecationXHPASTLinterRule
- Lint
Lint Passed - Unit
Tests Passed - Build Status
Buildable 15599 Build 20585: arc lint + arc unit
Event Timeline
Comment Actions
I think you probably want to use CaseInsensitiveArray, otherwise the linter message won't exactly match xhpast.deprecated.functions.
src/lint/linter/xhpast/rules/ArcanistDeprecationXHPASTLinterRule.php | ||
---|---|---|
40–45 | We should probably modify the getFunctionCalls method to do this. | |
src/lint/linter/xhpast/rules/__tests__/deprecation/deprecated-function.lint-test | ||
3–5 | Maybe also add a function call that uses the same casing? DeprecatedFunction(); |