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
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());
function foo() {
- if (true) return 'foo'; else return 'bar';
+ if (true) return "foo"; else return "bar";
}
~~~~~~~~~~
-error:2:
+error:2:3
~~~~~~~~~~
~~~~~~~~~~
{