Skip to content

Commit e9a62e5

Browse files
committed
JSLint: bug fix
The `$name` passed to `Config::getExecutablePath()` appears to be incorrect which would result in a duplicate `jslint jslint` command.
1 parent 2da6904 commit e9a62e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Standards/Squiz/Sniffs/Debug/JSLintSniff.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public function register()
4848
*/
4949
public function process(File $phpcsFile, $stackPtr)
5050
{
51-
$rhinoPath = Config::getExecutablePath('jslint');
51+
$rhinoPath = Config::getExecutablePath('rhino');
5252
$jslintPath = Config::getExecutablePath('jslint');
5353
if ($rhinoPath === null || $jslintPath === null) {
5454
return;

0 commit comments

Comments
 (0)