From: epriestley Date: Thu, 5 Jan 2012 18:25:43 +0000 (-0800) Subject: Remove all XHP lint tests from Arcanist X-Git-Tag: conduit-4~199 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=6f27c9e69382efa5b2a97b85b32a8f13c7aff5f6;p=arcanist.git Remove all XHP lint tests from Arcanist Summary: - Remove XHP tests so I can remove XHP support from XHPAST. - Update license tests so they don't break every year. Test Plan: - Ran all unit tests. Reviewers: btrahan, jungejason Reviewed By: btrahan CC: aran, pad, jungejason, btrahan Maniphest Tasks: T635 Differential Revision: https://secure.phabricator.com/D1318 --- diff --git a/src/lint/linter/apachelicense/__tests__/ArcanistApacheLicenseLinterTestCase.php b/src/lint/linter/apachelicense/__tests__/ArcanistApacheLicenseLinterTestCase.php index 9015e2e2..def0666d 100644 --- a/src/lint/linter/apachelicense/__tests__/ArcanistApacheLicenseLinterTestCase.php +++ b/src/lint/linter/apachelicense/__tests__/ArcanistApacheLicenseLinterTestCase.php @@ -1,7 +1,7 @@ define($pony, $cute); ~~~~~~~~~~ error:3:8 dynamic define error:5:8 dynamic define diff --git a/src/lint/linter/xhpast/__tests__/data/foil-marcels-lexer.lint-test b/src/lint/linter/xhpast/__tests__/data/foil-marcels-lexer.lint-test deleted file mode 100644 index 30724607..00000000 --- a/src/lint/linter/xhpast/__tests__/data/foil-marcels-lexer.lint-test +++ /dev/null @@ -1,81 +0,0 @@ - - x - - { - $x - - } - - - - & - - ' - - " - - - - - ; - -$x+$y; -~~~~~~~~~~ -warning:39:3 -~~~~~~~~~~ - - x - - { - $x - - } - - - - & - - ' - - " - - - - - ; - -$x + $y; diff --git a/src/lint/linter/xhpast/__tests__/data/naming-conventions.lint-test b/src/lint/linter/xhpast/__tests__/data/naming-conventions.lint-test index 69fc54ef..e03d9fad 100644 --- a/src/lint/linter/xhpast/__tests__/data/naming-conventions.lint-test +++ b/src/lint/linter/xhpast/__tests__/data/naming-conventions.lint-test @@ -7,7 +7,7 @@ class a { interface i { } -class :XhpStuff { } + function YY($ZZ) { } @@ -17,9 +17,9 @@ class Quack { public function vV($w_w) { } } -
const $y;
; -class :ui:lol-whatever:omg { } + + function () use ($this_is_a_closure) { }; @@ -35,7 +35,6 @@ warning:5:19 warning:5:21 warning:5:25 warning:8:11 -warning:10:7 warning:12:10 warning:12:13 warning:26:12 \ No newline at end of file diff --git a/src/lint/linter/xhpast/__tests__/data/parens-hug-contents.lint-test b/src/lint/linter/xhpast/__tests__/data/parens-hug-contents.lint-test index 5cd11a37..a5c95041 100644 --- a/src/lint/linter/xhpast/__tests__/data/parens-hug-contents.lint-test +++ b/src/lint/linter/xhpast/__tests__/data/parens-hug-contents.lint-test @@ -5,7 +5,7 @@ q( ); g(); if ($x) { } else if ( $y ) { } -
( a b c )
; + $obj->m( $x, $y, @@ -48,7 +48,7 @@ q(); g(); if ($x) { } else if ($y) { } -
( a b c )
; + $obj->m( $x, $y, diff --git a/src/lint/linter/xhpast/__tests__/data/space-after-control-keywords.lint-test b/src/lint/linter/xhpast/__tests__/data/space-after-control-keywords.lint-test index 0febb585..c66723b6 100644 --- a/src/lint/linter/xhpast/__tests__/data/space-after-control-keywords.lint-test +++ b/src/lint/linter/xhpast/__tests__/data/space-after-control-keywords.lint-test @@ -9,7 +9,7 @@ switch($x) {} if ($x) {} else if ($y) {} else if ($z) {} -if; + if ($x) {} if @@ -37,6 +37,6 @@ switch ($x) {} if ($x) {} else if ($y) {} else if ($z) {} -if; + if ($x) {} if ($x) {} diff --git a/src/lint/linter/xhpast/__tests__/data/space-around-operators.lint-test b/src/lint/linter/xhpast/__tests__/data/space-around-operators.lint-test index 31aa35f0..fb4c4037 100644 --- a/src/lint/linter/xhpast/__tests__/data/space-around-operators.lint-test +++ b/src/lint/linter/xhpast/__tests__/data/space-around-operators.lint-test @@ -12,15 +12,15 @@ $a===$b; $a.$b; function x($n=null) { } function x($n = null) { } -
1+1=2
; + $y /* ! */ += // ? $z; $obj->method(); Dog::bark(); $prev = ($total == 1) ? $navids[0] : $navids[$total-1]; $next = ($total == 1) ? $navids[0] : $navids[$current+1]; -if ($x instanceof :y:z &&$w) { } -if ($x instanceof :y:z && $w) { } +if ($x instanceof z &&$w) { } +if ($x instanceof z && $w) { } ~~~~~~~~~~ warning:3:3 warning:4:4 @@ -32,7 +32,7 @@ warning:10:3 warning:11:3 warning:20:52 warning:21:54 -warning:22:24 +warning:22:21 ~~~~~~~~~~ 1+1=2; + $y /* ! */ += // ? $z; $obj->method(); Dog::bark(); $prev = ($total == 1) ? $navids[0] : $navids[$total - 1]; $next = ($total == 1) ? $navids[0] : $navids[$current + 1]; -if ($x instanceof :y:z && $w) { } -if ($x instanceof :y:z && $w) { } +if ($x instanceof z && $w) { } +if ($x instanceof z && $w) { }