]> khamidou — GitHub mirrors - arcanist.git/commit
Improve declaration formatting linter rule for anonymous functions
authorJoshua Spence <josh@joshuaspence.com>
Sat, 8 Aug 2015 13:30:24 +0000 (23:30 +1000)
committerJoshua Spence <josh@joshuaspence.com>
Sat, 8 Aug 2015 23:13:57 +0000 (09:13 +1000)
commit9e65fc65164a3fc82e6027f77b111fd8e9362afc
tree2750035ef868e945c7326314216551152ed8a4de
parentc304c4e04564cab8b11104e7814376223dc82468
Improve declaration formatting linter rule for anonymous functions

Summary: Ref T8742. Anonymous functions should have a space after the `function` keyword. Additionally, ensure that there is a space before and after the `use` token.

Test Plan: Modified existing test cases.

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: Korvin

Maniphest Tasks: T8742

Differential Revision: https://secure.phabricator.com/D13804
src/lint/linter/__tests__/xhpast/call-time-pass-by-reference.lint-test
src/lint/linter/__tests__/xhpast/decl-parens-hug-closing.lint-test
src/lint/linter/__tests__/xhpast/inner-function.lint-test
src/lint/linter/__tests__/xhpast/naming-conventions.lint-test
src/lint/linter/__tests__/xhpast/php53-features.lint-test
src/lint/linter/__tests__/xhpast/reused-iterator-reference.lint-test
src/lint/linter/__tests__/xhpast/switches.lint-test
src/lint/linter/__tests__/xhpast/undeclared-variables.lint-test
src/lint/linter/xhpast/rules/ArcanistDeclarationParenthesesXHPASTLinterRule.php