-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Description
js file with error:
$ git commit -m "a"
on branch master
--> jshint syntax checking for test.js
stdin: line 1, col 1, Expected an assignment or function call and instead saw an expression.
stdin: line 1, col 9, Missing semicolon.
stdin: line 2, col 1, Expected an assignment or function call and instead saw an expression.
stdin: line 2, col 4, Missing semicolon.
stdin: line 3, col 1, Expected an assignment or function call and instead saw an expression.
stdin: line 3, col 2, Missing semicolon.
stdin: line 4, col 1, Expected an assignment or function call and instead saw an expression.
stdin: line 4, col 2, Missing semicolon.
8 errors
No jshint syntax errors detected in 'test.js'
[master 588c64f] a
1 file changed, 2 insertions(+), 1 deletion(-)
php file with error:
$ git commit -m "a"
on branch master
--> php syntax checking for test.php
No php syntax errors detected in 'test.php'
[master 4357ee1] a
1 file changed, 2 insertions(+), 1 deletion(-)
When I run the lint directly:
$ php -l test.php
Parse error: syntax error, unexpected 'adsasdsa' (T_STRING), expecting ',' or ';' in test.php on line 3
Errors parsing test.php
Any hints?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels