Skip to content
This repository has been archived by the owner on Oct 19, 2021. It is now read-only.

How to pass in --jslint reporter when calling coffeelint through grunt? #51

Closed
Iristyle opened this issue Sep 13, 2012 · 1 comment
Closed

Comments

@Iristyle
Copy link

I'm using grunt-coffeelint to run coffeelint over coffeescript code, and that works fine.

Now I need to make grunt generate output that can be sucked up by Jenkins. I see the --jslint command line option which is great.

However, the grunt task doesn't go through the CLI -- it just directly loads the linter, and passes it JSON for options.
https://github.com/vojtajina/grunt-coffeelint/blob/master/tasks/coffeelint.js#L11

Without digging into the CLI parsing code... is there an easy way to pass --jslint without using the command line?

@clutchski
Copy link
Owner

coffeelint.lint returns an array of errors. All of the reporter options (jslint, csv, etc) are handled in the command line tool right now. So this isn't possible right now. The reporter code could be moved into coffeelint.js.

Either way, this is a bug for grunt-coffeelint.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants