]> khamidou — GitHub mirrors - arcanist.git/commitdiff
Enable unit tests for `ArcanistJscsLinterTestCase`
authorJoshua Spence <josh@joshuaspence.com>
Wed, 2 Jul 2014 19:15:09 +0000 (05:15 +1000)
committerJoshua Spence <josh@joshuaspence.com>
Wed, 2 Jul 2014 19:15:09 +0000 (05:15 +1000)
Summary:
https://github.com/mdevils/node-jscs/issues/444 has been resolved in commit [[https://github.com/mdevils/node-jscs/commit/0de667bac2491ba04d930ff94e990965213ba36b | 0de667bac2491ba04d930ff94e990965213ba36b]], which means that `jscs` can be easily run on files with any extension.

NOTE: JSCS version 1.5.7 is required.

Test Plan: `arc unit`

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: epriestley, Korvin

Differential Revision: https://secure.phabricator.com/D9789

src/lint/linter/__tests__/ArcanistJscsLinterTestCase.php
src/lint/linter/__tests__/jscs/curly-brace.lint-test

index 5004a52798d293944b8d6facb0fb967df356b394..d72c44e01d1c71d72520fa27db80b963efd34b87 100644 (file)
@@ -3,12 +3,6 @@
 final class ArcanistJscsLinterTestCase extends ArcanistArcanistLinterTestCase {
 
   public function testJscsLinter() {
-    // NOTE: JSCS will only lint files with a `*.js` extension.
-    //
-    // See https://github.com/mdevils/node-jscs/issues/444
-    $this->assertTrue(true);
-    return;
-
     $this->executeTestsInDirectory(
       dirname(__FILE__).'/jscs/',
       new ArcanistJscsLinter());
index e5c37f4376000813b7022d95b1913084756a6a2b..ff3c78683461b8178494982a31b2a8a54aef671c 100644 (file)
@@ -1,8 +1,8 @@
 function foo() {
-  if (true) return 'foo'; else return 'bar';
+  if (true) return "foo"; else return "bar";
 }
 ~~~~~~~~~~
-error:2:
+error:2:3
 ~~~~~~~~~~
 ~~~~~~~~~~
 {