]> khamidou — GitHub mirrors - arcanist.git/commit
Test XHPAST linter rules in isolation
authorJoshua Spence <josh@joshuaspence.com>
Wed, 18 Nov 2015 21:57:23 +0000 (08:57 +1100)
committerJoshua Spence <josh@freelancer.com>
Wed, 18 Nov 2015 21:57:23 +0000 (08:57 +1100)
commit4d512c51d43ce858b720cd4729151d55c67adb1f
tree3a1eb9323cf88326e67bb9fbd0d6764cc0505e92
parente3e232530c6e9393228cdd246ba9f4a48c0f5917
Test XHPAST linter rules in isolation

Summary:
Separate XHPAST linter rules in isolation from other rules and formalize the concept of a "linter rule". As the number of XHPAST linter rules grows (we currently have around 80), it becomes increasingly difficult to manage all of the test cases because `ArcanistXHPASTLinterTestCase` currently tests the entire linter (i.e. //all// linter rules) rather than testing individual rules in isolation. See D13534 for a situation in which this is painful. This is particularly bad for third party development because unit tests could break at any time depending on upstream changes.

Basically, in order to facilitate the unit testing of XHPAST linter rules in isolation, I have made the following  changes:

  # Added a `setRules()` method to `ArcanistXHPASTLinter`. Currently, `ArcanistXHPASTLinter` loads all `ArcanistXHPASTLinterRule` subclasses unconditionally. The `setRules()` method provides a way to override the configured linter rules.
  # Formalize the concept of a "linter rule". The `ArcanistXHPASTLinterRule` class was introduced in D10541. I feel that the modularization of `ArcanistXHPASTLinter` has made the linter much more maintainable and easily testable and I intend to extend this concept to other linters, such as `ArcanistTextLinter`.

Test Plan: Ran unit tests.

Reviewers: #blessed_reviewers, epriestley

Reviewed By: #blessed_reviewers, epriestley

Subscribers: Korvin

Differential Revision: https://secure.phabricator.com/D14010
180 files changed:
.editorconfig
src/__phutil_library_map__.php
src/lint/linter/ArcanistLinter.php
src/lint/linter/ArcanistSpellingLinter.php
src/lint/linter/ArcanistXHPASTLinter.php
src/lint/linter/__tests__/ArcanistLinterTestCase.php
src/lint/linter/__tests__/ArcanistSpellingLinterTestCase.php
src/lint/linter/__tests__/php/no-errors.lint-test
src/lint/linter/__tests__/xhpast/empty-statement.lint-test [deleted file]
src/lint/linter/__tests__/xhpast/exit-expression.lint-test [deleted file]
src/lint/linter/__tests__/xhpast/unreasonably-deep-nesting.lint-test
src/lint/linter/xhpast/ArcanistXHPASTLinterRule.php
src/lint/linter/xhpast/__tests__/ArcanistXHPASTLinterRuleTestCase.php [deleted file]
src/lint/linter/xhpast/rules/__tests__/ArcanistAliasFunctionXHPASTLinterRuleTestCase.php [new file with mode: 0644]
src/lint/linter/xhpast/rules/__tests__/ArcanistArrayCombineXHPASTLinterRuleTestCase.php [new file with mode: 0644]
src/lint/linter/xhpast/rules/__tests__/ArcanistArrayIndexSpacingXHPASTLinterRuleTestCase.php [new file with mode: 0644]
src/lint/linter/xhpast/rules/__tests__/ArcanistArraySeparatorXHPASTLinterRuleTestCase.php [new file with mode: 0644]
src/lint/linter/xhpast/rules/__tests__/ArcanistArrayValueXHPASTLinterRuleTestCase.php [new file with mode: 0644]
src/lint/linter/xhpast/rules/__tests__/ArcanistBinaryExpressionSpacingXHPASTLinterRuleTestCase.php [new file with mode: 0644]
src/lint/linter/xhpast/rules/__tests__/ArcanistBlacklistedFunctionXHPASTLinterRuleTestCase.php [new file with mode: 0644]
src/lint/linter/xhpast/rules/__tests__/ArcanistBraceFormattingXHPASTLinterRuleTestCase.php [new file with mode: 0644]
src/lint/linter/xhpast/rules/__tests__/ArcanistCallParenthesesXHPASTLinterRuleTestCase.php [new file with mode: 0644]
src/lint/linter/xhpast/rules/__tests__/ArcanistCallTimePassByReferenceXHPASTLinterRuleTestCase.php [new file with mode: 0644]
src/lint/linter/xhpast/rules/__tests__/ArcanistCastSpacingXHPASTLinterRuleTestCase.php [new file with mode: 0644]
src/lint/linter/xhpast/rules/__tests__/ArcanistClassExtendsObjectXHPASTLinterRuleTestCase.php [new file with mode: 0644]
src/lint/linter/xhpast/rules/__tests__/ArcanistClassNameLiteralXHPASTLinterRuleTestCase.php [new file with mode: 0644]
src/lint/linter/xhpast/rules/__tests__/ArcanistCommentStyleXHPASTLinterRuleTestCase.php [new file with mode: 0644]
src/lint/linter/xhpast/rules/__tests__/ArcanistConcatenationOperatorXHPASTLinterRuleTestCase.php [new file with mode: 0644]
src/lint/linter/xhpast/rules/__tests__/ArcanistConstructorParenthesesXHPASTLinterRuleTestCase.php [new file with mode: 0644]
src/lint/linter/xhpast/rules/__tests__/ArcanistControlStatementSpacingXHPASTLinterRuleTestCase.php [new file with mode: 0644]
src/lint/linter/xhpast/rules/__tests__/ArcanistDeclarationParenthesesXHPASTLinterRuleTestCase.php [new file with mode: 0644]
src/lint/linter/xhpast/rules/__tests__/ArcanistDefaultParametersXHPASTLinterRuleTestCase.php [new file with mode: 0644]
src/lint/linter/xhpast/rules/__tests__/ArcanistDeprecationXHPASTLinterRuleTestCase.php [new file with mode: 0644]
src/lint/linter/xhpast/rules/__tests__/ArcanistDoubleQuoteXHPASTLinterRuleTestCase.php [new file with mode: 0644]
src/lint/linter/xhpast/rules/__tests__/ArcanistDuplicateKeysInArrayXHPASTLinterRuleTestCase.php [new file with mode: 0644]
src/lint/linter/xhpast/rules/__tests__/ArcanistDuplicateSwitchCaseXHPASTLinterRuleTestCase.php [new file with mode: 0644]
src/lint/linter/xhpast/rules/__tests__/ArcanistDynamicDefineXHPASTLinterRuleTestCase.php [new file with mode: 0644]
src/lint/linter/xhpast/rules/__tests__/ArcanistElseIfUsageXHPASTLinterRuleTestCase.php [new file with mode: 0644]
src/lint/linter/xhpast/rules/__tests__/ArcanistEmptyStatementXHPASTLinterRuleTestCase.php [new file with mode: 0644]
src/lint/linter/xhpast/rules/__tests__/ArcanistExitExpressionXHPASTLinterRuleTestCase.php [new file with mode: 0644]
src/lint/linter/xhpast/rules/__tests__/ArcanistExtractUseXHPASTLinterRuleTestCase.php [new file with mode: 0644]
src/lint/linter/xhpast/rules/__tests__/ArcanistFormattedStringXHPASTLinterRuleTestCase.php [new file with mode: 0644]
src/lint/linter/xhpast/rules/__tests__/ArcanistGlobalVariableXHPASTLinterRuleTestCase.php [new file with mode: 0644]
src/lint/linter/xhpast/rules/__tests__/ArcanistImplicitConstructorXHPASTLinterRuleTestCase.php [new file with mode: 0644]
src/lint/linter/xhpast/rules/__tests__/ArcanistImplicitFallthroughXHPASTLinterRuleTestCase.php [new file with mode: 0644]
src/lint/linter/xhpast/rules/__tests__/ArcanistImplicitVisibilityXHPASTLinterRuleTestCase.php [new file with mode: 0644]
src/lint/linter/xhpast/rules/__tests__/ArcanistInlineHTMLXHPASTLinterRuleTestCase.php [new file with mode: 0644]
src/lint/linter/xhpast/rules/__tests__/ArcanistInnerFunctionXHPASTLinterRuleTestCase.php [new file with mode: 0644]
src/lint/linter/xhpast/rules/__tests__/ArcanistInstanceofOperatorXHPASTLinterRuleTestCase.php [new file with mode: 0644]
src/lint/linter/xhpast/rules/__tests__/ArcanistInvalidDefaultParameterXHPASTLinterRuleTestCase.php [new file with mode: 0644]
src/lint/linter/xhpast/rules/__tests__/ArcanistInvalidModifiersXHPASTLinterRuleTestCase.php [new file with mode: 0644]
src/lint/linter/xhpast/rules/__tests__/ArcanistKeywordCasingXHPASTLinterRuleTestCase.php [new file with mode: 0644]
src/lint/linter/xhpast/rules/__tests__/ArcanistLambdaFuncFunctionXHPASTLinterRuleTestCase.php [new file with mode: 0644]
src/lint/linter/xhpast/rules/__tests__/ArcanistLanguageConstructParenthesesXHPASTLinterRuleTestCase.php [new file with mode: 0644]
src/lint/linter/xhpast/rules/__tests__/ArcanistListAssignmentXHPASTLinterRuleTestCase.php [new file with mode: 0644]
src/lint/linter/xhpast/rules/__tests__/ArcanistLogicalOperatorsXHPASTLinterRuleTestCase.php [new file with mode: 0644]
src/lint/linter/xhpast/rules/__tests__/ArcanistLowercaseFunctionsXHPASTLinterRuleTestCase.php [new file with mode: 0644]
src/lint/linter/xhpast/rules/__tests__/ArcanistModifierOrderingXHPASTLinterRuleTestCase.php [new file with mode: 0644]
src/lint/linter/xhpast/rules/__tests__/ArcanistNamingConventionsXHPASTLinterRuleTestCase.php [new file with mode: 0644]
src/lint/linter/xhpast/rules/__tests__/ArcanistNewlineAfterOpenTagXHPASTLinterRuleTestCase.php [new file with mode: 0644]
src/lint/linter/xhpast/rules/__tests__/ArcanistNoParentScopeXHPASTLinterRuleTestCase.php [new file with mode: 0644]
src/lint/linter/xhpast/rules/__tests__/ArcanistObjectOperatorSpacingXHPASTLinterRuleTestCase.php [new file with mode: 0644]
src/lint/linter/xhpast/rules/__tests__/ArcanistPHPCompatibilityXHPASTLinterRuleTestCase.php [new file with mode: 0644]
src/lint/linter/xhpast/rules/__tests__/ArcanistPHPEchoTagXHPASTLinterRuleTestCase.php [new file with mode: 0644]
src/lint/linter/xhpast/rules/__tests__/ArcanistPHPOpenTagXHPASTLinterRuleTestCase.php [new file with mode: 0644]
src/lint/linter/xhpast/rules/__tests__/ArcanistPHPShortTagXHPASTLinterRuleTestCase.php [new file with mode: 0644]
src/lint/linter/xhpast/rules/__tests__/ArcanistParenthesesSpacingXHPASTLinterRuleTestCase.php [new file with mode: 0644]
src/lint/linter/xhpast/rules/__tests__/ArcanistParseStrUseXHPASTLinterRuleTestCase.php [new file with mode: 0644]
src/lint/linter/xhpast/rules/__tests__/ArcanistPlusOperatorOnStringsXHPASTLinterRuleTestCase.php [new file with mode: 0644]
src/lint/linter/xhpast/rules/__tests__/ArcanistPregQuoteMisuseXHPASTLinterRuleTestCase.php [new file with mode: 0644]
src/lint/linter/xhpast/rules/__tests__/ArcanistRaggedClassTreeEdgeXHPASTLinterRuleTestCase.php [new file with mode: 0644]
src/lint/linter/xhpast/rules/__tests__/ArcanistReusedAsIteratorXHPASTLinterRuleTestCase.php [new file with mode: 0644]
src/lint/linter/xhpast/rules/__tests__/ArcanistReusedIteratorReferenceXHPASTLinterRuleTestCase.php [new file with mode: 0644]
src/lint/linter/xhpast/rules/__tests__/ArcanistReusedIteratorXHPASTLinterRuleTestCase.php [new file with mode: 0644]
src/lint/linter/xhpast/rules/__tests__/ArcanistSelfMemberReferenceXHPASTLinterRuleTestCase.php [new file with mode: 0644]
src/lint/linter/xhpast/rules/__tests__/ArcanistSemicolonSpacingXHPASTLinterRuleTestCase.php [new file with mode: 0644]
src/lint/linter/xhpast/rules/__tests__/ArcanistSlownessXHPASTLinterRuleTestCase.php [new file with mode: 0644]
src/lint/linter/xhpast/rules/__tests__/ArcanistStaticThisXHPASTLinterRuleTestCase.php [new file with mode: 0644]
src/lint/linter/xhpast/rules/__tests__/ArcanistTautologicalExpressionXHPASTLinterRuleTestCase.php [new file with mode: 0644]
src/lint/linter/xhpast/rules/__tests__/ArcanistToStringExceptionXHPASTLinterRuleTestCase.php [new file with mode: 0644]
src/lint/linter/xhpast/rules/__tests__/ArcanistTodoCommentXHPASTLinterRuleTestCase.php [new file with mode: 0644]
src/lint/linter/xhpast/rules/__tests__/ArcanistUnaryPostfixExpressionSpacingXHPASTLinterRuleTestCase.php [new file with mode: 0644]
src/lint/linter/xhpast/rules/__tests__/ArcanistUnaryPrefixExpressionSpacingXHPASTLinterRuleTestCase.php [new file with mode: 0644]
src/lint/linter/xhpast/rules/__tests__/ArcanistUndeclaredVariableXHPASTLinterRuleTestCase.php [new file with mode: 0644]
src/lint/linter/xhpast/rules/__tests__/ArcanistUnnecessaryFinalModifierXHPASTLinterRuleTestCase.php [new file with mode: 0644]
src/lint/linter/xhpast/rules/__tests__/ArcanistUnsafeDynamicStringXHPASTLinterRuleTestCase.php [new file with mode: 0644]
src/lint/linter/xhpast/rules/__tests__/ArcanistUselessOverridingMethodXHPASTLinterRuleTestCase.php [new file with mode: 0644]
src/lint/linter/xhpast/rules/__tests__/ArcanistVariableVariableXHPASTLinterRuleTestCase.php [new file with mode: 0644]
src/lint/linter/xhpast/rules/__tests__/ArcanistXHPASTLinterRuleTestCase.php [new file with mode: 0644]
src/lint/linter/xhpast/rules/__tests__/__lambda_func-function/lamba-func-function.lint-test [moved from src/lint/linter/__tests__/xhpast/lamba-func-function.lint-test with 100% similarity]
src/lint/linter/xhpast/rules/__tests__/__toString-exception/__toString-exception.lint-test [moved from src/lint/linter/__tests__/xhpast/tostring-exception.lint-test with 85% similarity]
src/lint/linter/xhpast/rules/__tests__/alias-functions/alias-functions.lint-test [moved from src/lint/linter/__tests__/xhpast/alias-functions.lint-test with 76% similarity]
src/lint/linter/xhpast/rules/__tests__/array-combine/array-combine.lint-test [moved from src/lint/linter/__tests__/xhpast/array-combine.lint-test with 100% similarity]
src/lint/linter/xhpast/rules/__tests__/array-index-spacing/array-index-spacing.lint-test [moved from src/lint/linter/__tests__/xhpast/array-index.lint-test with 73% similarity]
src/lint/linter/xhpast/rules/__tests__/array-separator/array-separator.lint-test [moved from src/lint/linter/__tests__/xhpast/array-comma.lint-test with 100% similarity]
src/lint/linter/xhpast/rules/__tests__/array-value/array-value.lint-test [moved from src/lint/linter/__tests__/xhpast/array-value.lint-test with 100% similarity]
src/lint/linter/xhpast/rules/__tests__/binary-expression-spacing/array.lint-test [moved from src/lint/linter/__tests__/xhpast/space-around-more-operators.lint-test with 55% similarity]
src/lint/linter/xhpast/rules/__tests__/binary-expression-spacing/binary-expression-spacing.lint-test [moved from src/lint/linter/__tests__/xhpast/space-around-operators.lint-test with 100% similarity]
src/lint/linter/xhpast/rules/__tests__/blacklisted-function/blacklisted-function.lint-test [moved from src/lint/linter/__tests__/xhpast/blacklisted.lint-test with 100% similarity]
src/lint/linter/xhpast/rules/__tests__/brace-formatting/brace-formatting.lint-test [moved from src/lint/linter/__tests__/xhpast/creative-brace-use.lint-test with 93% similarity]
src/lint/linter/xhpast/rules/__tests__/call-parentheses/array.lint-test [new file with mode: 0644]
src/lint/linter/xhpast/rules/__tests__/call-parentheses/call-parentheses.lint-test [moved from src/lint/linter/__tests__/xhpast/call-parens-hug-closing.lint-test with 100% similarity]
src/lint/linter/xhpast/rules/__tests__/call-time-pass-by-reference/call-time-pass-by-reference.lint-test [moved from src/lint/linter/__tests__/xhpast/call-time-pass-by-reference.lint-test with 92% similarity]
src/lint/linter/xhpast/rules/__tests__/cast-spacing/cast-spacing.lint-test [moved from src/lint/linter/__tests__/xhpast/cast-spacing.lint-test with 100% similarity]
src/lint/linter/xhpast/rules/__tests__/class-extends-object/extends-phobject.lint-test [moved from src/lint/linter/__tests__/xhpast/extends-phobject.lint-test with 100% similarity]
src/lint/linter/xhpast/rules/__tests__/class-name-literal/class-name-literal.lint-test [moved from src/lint/linter/__tests__/xhpast/class-name-literal.lint-test with 92% similarity]
src/lint/linter/xhpast/rules/__tests__/comment-style/hash-comments.lint-test [moved from src/lint/linter/__tests__/xhpast/hash-comments.lint-test with 81% similarity]
src/lint/linter/xhpast/rules/__tests__/concatenation-operator/concatenation-operator.lint-test [new file with mode: 0644]
src/lint/linter/xhpast/rules/__tests__/constructor-parentheses/constructor-parentheses.lint-test [moved from src/lint/linter/__tests__/xhpast/constructor-parentheses.lint-test with 100% similarity]
src/lint/linter/xhpast/rules/__tests__/control-statement-spacing/control-statement-spacing.lint-test [moved from src/lint/linter/__tests__/xhpast/space-after-control-keywords.lint-test with 86% similarity]
src/lint/linter/xhpast/rules/__tests__/declaration-parentheses/declaration-parentheses.lint-test [moved from src/lint/linter/__tests__/xhpast/decl-parens-hug-closing.lint-test with 97% similarity]
src/lint/linter/xhpast/rules/__tests__/default-parameters/default-parameters.lint-test [moved from src/lint/linter/__tests__/xhpast/default-parameters.lint-test with 86% similarity]
src/lint/linter/xhpast/rules/__tests__/deprecation/deprecated-function.lint-test [moved from src/lint/linter/__tests__/xhpast/deprecated-function.lint-test with 100% similarity]
src/lint/linter/xhpast/rules/__tests__/double-quote/double-quote.lint-test [moved from src/lint/linter/__tests__/xhpast/double-quote.lint-test with 100% similarity]
src/lint/linter/xhpast/rules/__tests__/duplicate-keys-in-array/duplicate-keys-in-array.lint-test [moved from src/lint/linter/__tests__/xhpast/duplicate-key-in-array.lint-test with 100% similarity]
src/lint/linter/xhpast/rules/__tests__/duplicate-switch-case/duplicate-switch-case.lint-test [moved from src/lint/linter/__tests__/xhpast/duplicate-switch-case.lint-test with 100% similarity]
src/lint/linter/xhpast/rules/__tests__/dynamic-define/dynamic-define.lint-test [moved from src/lint/linter/__tests__/xhpast/dynamic-define.lint-test with 100% similarity]
src/lint/linter/xhpast/rules/__tests__/elseif-usage/elseif-usage.lint-test [moved from src/lint/linter/__tests__/xhpast/elseif.lint-test with 100% similarity]
src/lint/linter/xhpast/rules/__tests__/empty-statement/empty-statement.lint-test [moved from src/lint/linter/__tests__/xhpast/empty-block-statement.lint-test with 100% similarity]
src/lint/linter/xhpast/rules/__tests__/exit-expression/exit-expression.lint-test [new file with mode: 0644]
src/lint/linter/xhpast/rules/__tests__/extract-use/extract-use.lint-test [moved from src/lint/linter/__tests__/xhpast/extract-use.lint-test with 100% similarity]
src/lint/linter/xhpast/rules/__tests__/formatted-string/formatted-string.lint-test [moved from src/lint/linter/__tests__/xhpast/formatted-string.lint-test with 100% similarity]
src/lint/linter/xhpast/rules/__tests__/global-variable/global-variable.lint-test [moved from src/lint/linter/__tests__/xhpast/global-variables.lint-test with 100% similarity]
src/lint/linter/xhpast/rules/__tests__/implicit-constructor/implicit-constructor.lint-test [moved from src/lint/linter/__tests__/xhpast/surprising-constructors.lint-test with 72% similarity]
src/lint/linter/xhpast/rules/__tests__/implicit-fallthrough/implicit-fallthrough.lint-test [moved from src/lint/linter/__tests__/xhpast/switches.lint-test with 98% similarity]
src/lint/linter/xhpast/rules/__tests__/implicit-visibility/implicit-visibility.lint-test [moved from src/lint/linter/__tests__/xhpast/implicit-visibility.lint-test with 93% similarity]
src/lint/linter/xhpast/rules/__tests__/inline-html/inline-html.lint-test [moved from src/lint/linter/__tests__/xhpast/inline-html.lint-test with 100% similarity]
src/lint/linter/xhpast/rules/__tests__/inner-function/inner-function.lint-test [moved from src/lint/linter/__tests__/xhpast/inner-function.lint-test with 100% similarity]
src/lint/linter/xhpast/rules/__tests__/instanceof-operator/instanceof-operator.lint-test [moved from src/lint/linter/__tests__/xhpast/instanceof-operator.lint-test with 100% similarity]
src/lint/linter/xhpast/rules/__tests__/invalid-default-parameter/invalid-default-parameter.lint-test [moved from src/lint/linter/__tests__/xhpast/invalid-default-parameter.lint-test with 100% similarity]
src/lint/linter/xhpast/rules/__tests__/invalid-modifiers/invalid-modifiers.lint-test [moved from src/lint/linter/__tests__/xhpast/invalid-modifiers.lint-test with 86% similarity]
src/lint/linter/xhpast/rules/__tests__/keyword-casing/keyword-casing.lint-test [moved from src/lint/linter/__tests__/xhpast/keyword-casing.lint-test with 100% similarity]
src/lint/linter/xhpast/rules/__tests__/language-construct-parentheses/language-construct-parentheses.lint-test [moved from src/lint/linter/__tests__/xhpast/language-construct-parentheses.lint-test with 100% similarity]
src/lint/linter/xhpast/rules/__tests__/list-assignment/list-assignment.lint-test [moved from src/lint/linter/__tests__/xhpast/list-assignment.lint-test with 100% similarity]
src/lint/linter/xhpast/rules/__tests__/logical-operators/logical-operators.lint-test [moved from src/lint/linter/__tests__/xhpast/logical-operators.lint-test with 100% similarity]
src/lint/linter/xhpast/rules/__tests__/lowercase-functions/lowercase-functions.lint-test [moved from src/lint/linter/__tests__/xhpast/lowercase-functions.lint-test with 100% similarity]
src/lint/linter/xhpast/rules/__tests__/modifier-ordering/modifier-ordering.lint-test [moved from src/lint/linter/__tests__/xhpast/modifier-ordering.lint-test with 90% similarity]
src/lint/linter/xhpast/rules/__tests__/naming-conventions/constant-case.lint-test [moved from src/lint/linter/__tests__/xhpast/constant-case.lint-test with 78% similarity]
src/lint/linter/xhpast/rules/__tests__/naming-conventions/naming-conventions.lint-test [moved from src/lint/linter/__tests__/xhpast/naming-conventions.lint-test with 96% similarity]
src/lint/linter/xhpast/rules/__tests__/newline-after-open-tag/newline-after-open-tag.lint-test [moved from src/lint/linter/__tests__/xhpast/newline-after-open-tag.lint-test with 100% similarity]
src/lint/linter/xhpast/rules/__tests__/no-parent-scope/no-parent-scope.lint-test [moved from src/lint/linter/__tests__/xhpast/no-parent-scope.lint-test with 96% similarity]
src/lint/linter/xhpast/rules/__tests__/object-operator-spacing/object-operator-spacing.lint-test [moved from src/lint/linter/__tests__/xhpast/object-operating-spacing.lint-test with 100% similarity]
src/lint/linter/xhpast/rules/__tests__/parentheses-spacing/array.lint-test [moved from src/lint/linter/__tests__/xhpast/array-formatting.lint-test with 74% similarity]
src/lint/linter/xhpast/rules/__tests__/parentheses-spacing/parentheses-spacing.lint-test [moved from src/lint/linter/__tests__/xhpast/parens-hug-contents.lint-test with 94% similarity]
src/lint/linter/xhpast/rules/__tests__/parse_str-use/parse_str-use.lint-test [moved from src/lint/linter/__tests__/xhpast/parse_str-use.lint-test with 100% similarity]
src/lint/linter/xhpast/rules/__tests__/php-compatibility/conditional-usage.lint-test [moved from src/lint/linter/__tests__/xhpast/conditional-usage.lint-test with 97% similarity]
src/lint/linter/xhpast/rules/__tests__/php-compatibility/index-function.lint-test [moved from src/lint/linter/__tests__/xhpast/index-function.lint-test with 100% similarity]
src/lint/linter/xhpast/rules/__tests__/php-compatibility/nowdoc.lint-test [moved from src/lint/linter/__tests__/xhpast/nowdoc.lint-test with 100% similarity]
src/lint/linter/xhpast/rules/__tests__/php-compatibility/php-compatibility.lint-test [moved from src/lint/linter/__tests__/xhpast/php-compatibility.lint-test with 100% similarity]
src/lint/linter/xhpast/rules/__tests__/php-compatibility/php53-features.lint-test [moved from src/lint/linter/__tests__/xhpast/php53-features.lint-test with 100% similarity]
src/lint/linter/xhpast/rules/__tests__/php-compatibility/php54-features.lint-test [moved from src/lint/linter/__tests__/xhpast/php54-features.lint-test with 97% similarity]
src/lint/linter/xhpast/rules/__tests__/php-compatibility/php54-incompat.lint-test [moved from src/lint/linter/__tests__/xhpast/php54-incompat.lint-test with 100% similarity]
src/lint/linter/xhpast/rules/__tests__/php-compatibility/windows.lint-test [moved from src/lint/linter/__tests__/xhpast/windows.lint-test with 100% similarity]
src/lint/linter/xhpast/rules/__tests__/php-echo-tag/php-echo-tag.lint-test [moved from src/lint/linter/__tests__/xhpast/php-tags-echo-form.lint-test with 100% similarity]
src/lint/linter/xhpast/rules/__tests__/php-open-tag/php-open-tag.lint-test [moved from src/lint/linter/__tests__/xhpast/php-tags-bad.lint-test with 86% similarity]
src/lint/linter/xhpast/rules/__tests__/php-open-tag/php-tags-good.lint-test [moved from src/lint/linter/__tests__/xhpast/php-tags-good.lint-test with 100% similarity]
src/lint/linter/xhpast/rules/__tests__/php-open-tag/php-tags-script.lint-test [moved from src/lint/linter/__tests__/xhpast/php-tags-script.lint-test with 100% similarity]
src/lint/linter/xhpast/rules/__tests__/php-short-tag/php-short-tag.lint-test [moved from src/lint/linter/__tests__/xhpast/php-tags-short.lint-test with 77% similarity]
src/lint/linter/xhpast/rules/__tests__/plus-operator-on-strings/plus-operator-on-strings.lint-test [moved from src/lint/linter/__tests__/xhpast/wrong-concat-operator.lint-test with 100% similarity]
src/lint/linter/xhpast/rules/__tests__/preg_quote-misuse/preg_quote-misuse.lint-test [moved from src/lint/linter/__tests__/xhpast/preg-quote.lint-test with 100% similarity]
src/lint/linter/xhpast/rules/__tests__/ragged-classtree-edge/ragged-classtree-edge.lint-test [moved from src/lint/linter/__tests__/xhpast/ragged-classtree-edges.lint-test with 100% similarity]
src/lint/linter/xhpast/rules/__tests__/reused-as-iterator/reused-as-iterator.lint-test [moved from src/lint/linter/__tests__/xhpast/reused-local.lint-test with 100% similarity]
src/lint/linter/xhpast/rules/__tests__/reused-iterator-reference/reused-iterator-reference.lint-test [moved from src/lint/linter/__tests__/xhpast/reused-iterator-reference.lint-test with 98% similarity]
src/lint/linter/xhpast/rules/__tests__/reused-iterator/reused-iterator.lint-test [moved from src/lint/linter/__tests__/xhpast/reused-iterators.lint-test with 100% similarity]
src/lint/linter/xhpast/rules/__tests__/self-member-reference/php53.lint-test [moved from src/lint/linter/__tests__/xhpast/self-member-references-php53.lint-test with 96% similarity]
src/lint/linter/xhpast/rules/__tests__/self-member-reference/php54.lint-test [moved from src/lint/linter/__tests__/xhpast/self-member-references-php54.lint-test with 97% similarity]
src/lint/linter/xhpast/rules/__tests__/self-member-reference/self-member-reference.lint-test [moved from src/lint/linter/__tests__/xhpast/self-member-references.lint-test with 97% similarity]
src/lint/linter/xhpast/rules/__tests__/semicolon-spacing/semicolon-spacing.lint-test [moved from src/lint/linter/__tests__/xhpast/semicolon-spacing.lint-test with 100% similarity]
src/lint/linter/xhpast/rules/__tests__/slowness/slowness.lint-test [moved from src/lint/linter/__tests__/xhpast/slowness.lint-test with 100% similarity]
src/lint/linter/xhpast/rules/__tests__/static-this/static-this.lint-test [moved from src/lint/linter/__tests__/xhpast/use-of-this-in-static-method.lint-test with 57% similarity]
src/lint/linter/xhpast/rules/__tests__/tautological-expression/tautological-expression.lint-test [moved from src/lint/linter/__tests__/xhpast/tautological-expressions.lint-test with 100% similarity]
src/lint/linter/xhpast/rules/__tests__/todo-comment/todo-comment.lint-test [moved from src/lint/linter/__tests__/xhpast/todo.lint-test with 100% similarity]
src/lint/linter/xhpast/rules/__tests__/unary-postfix-expression-spacing/unary-postfix-expression-spacing.lint-test [moved from src/lint/linter/__tests__/xhpast/unary-postfix-expression-spacing.lint-test with 100% similarity]
src/lint/linter/xhpast/rules/__tests__/unary-prefix-expression-spacing/unary-prefix-expression-spacing.lint-test [moved from src/lint/linter/__tests__/xhpast/unary-prefix-expression-spacing.lint-test with 100% similarity]
src/lint/linter/xhpast/rules/__tests__/undeclared-variable/undeclared-variable.lint-test [moved from src/lint/linter/__tests__/xhpast/undeclared-variables.lint-test with 95% similarity]
src/lint/linter/xhpast/rules/__tests__/unnecessary-final-modifier/unnecessary-final-modifier.lint-test [moved from src/lint/linter/__tests__/xhpast/unnecessary-final-modifier.lint-test with 78% similarity]
src/lint/linter/xhpast/rules/__tests__/unsafe-dynamic-string/pht.lint-test [moved from src/lint/linter/__tests__/xhpast/pht.lint-test with 94% similarity]
src/lint/linter/xhpast/rules/__tests__/unsafe-dynamic-string/xsprintf.lint-test [moved from src/lint/linter/__tests__/xhpast/xsprintf.lint-test with 100% similarity]
src/lint/linter/xhpast/rules/__tests__/useless-overriding-method/useless-overriding-method.lint-test [moved from src/lint/linter/__tests__/xhpast/useless-overriding-method.lint-test with 98% similarity]
src/lint/linter/xhpast/rules/__tests__/variable-variable/variable-variables.lint-test [moved from src/lint/linter/__tests__/xhpast/variable-variables.lint-test with 100% similarity]