Ref T7409. Adds ArcanistXHPASTLinter::LINT_INNER_FUNCTION to advise against declaring PHP functions within an outer function. Based on Squiz_Sniffs_PHP_InnerFunctionsSniff.
Details
Details
- Reviewers
epriestley - Group Reviewers
Blessed Reviewers - Maniphest Tasks
- T7409: Implement PHPCS lints
- Commits
- rARCe233b158f2e1: Add a linter rule for declaring nested functions
Added unit tests.
Diff Detail
Diff Detail
- Repository
- rARC Arcanist
- Branch
- master
- Lint
Lint Passed - Unit
Test Failures - Build Status
Buildable 5281 Build 5299: [Placeholder Plan] Wait for 30 Seconds
Time | Test | |
---|---|---|
9,286 ms | ArcanistXHPASTLinterTestCase::testLinter | |
823 ms | ArcanistCSSLintLinterTestCase::testLinter | |
151 ms | ArcanistCSSLintLinterTestCase::testVersion | |
131 ms | ArcanistChmodLinterTestCase::testLinter | |
247 ms | ArcanistClosureLinterTestCase::testLinter | |
View Full Test Results (1 Failed · 46 Passed · 6 Skipped) |