I have used a PHP version of JSLint for the build script. But I didn’t write it.. my ex-coworker did. But now, I can’t remember what the name is, and where can I find that PHP library do to JSLint thing for me. Any know? Thaks.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Try:
http://www.overflow.biz/blog/lang/en-us/2010/07/07/jslint-php-class/
With:
http://www.javascriptlint.com/download.htm
Code from first link (credit to z3n)
Solution:
Helper functions:
Usage:
Required:
jslint binaries from http://www.JavaScriptLint.com/
Make sure you set the default path on the __construct, so you don’t need to keep setting it on every call.