csslint icon indicating copy to clipboard operation
csslint copied to clipboard

csslint-rhino.js exception when CSS directories are passed

Open senthilp opened this issue 15 years ago • 2 comments

I am trying to integrate CSS lint (command line for Rhino) as a part of our build process and when I try to run it by passing the directory which contains all the CSS files the tool errors out with the message

"js: uncaught JavaScript runtime exception: TypeError: Cannot find function listF iles in object C:\views\myapp\src\css."

Command line: java -jar js.jar csslint-rhino.js --format=lint-xml C:\views\myapp\src\css

It works fine when the individual CSS files are passed as parameters. Can you please guide me on this.

senthilp avatar Jul 08 '11 20:07 senthilp

If you hadn't been running windows you could've used my script. But I guess you need to do something similar under windows...

https://github.com/StefanWallin/css-lint-rhino-runner

StefanWallin avatar Jul 09 '11 23:07 StefanWallin

Thanks Stefan, and yes I am looking for windows as all our build systems are windows NT based

senthilp avatar Jul 09 '11 23:07 senthilp