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 15352 Build 20213: 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–41 | We should probably modify the getFunctionCalls method to do this. | |
src/lint/linter/xhpast/rules/__tests__/deprecation/deprecated-function.lint-test | ||
3–4 | Maybe also add a function call that uses the same casing? DeprecatedFunction(); |