Open fcaraujo opened 9 years ago
Hmm, I didn't really think that one through. The grunt-plugin only supports writing to file...
Could you add this to node_modules/grunt-contrib-csslint/tasks/csslint.js
to check if it works? I currently have no projects using Grunt on my machine...
https://github.com/SimenB/grunt-contrib-csslint/commit/25544eecab5f5676c95a6c3a4385980a3c00f54a
You can also set the option useOnlyBuiltInFormatter
to true
to skip the normal printing
Ok, first of all the project was using v0.3, I updated (v0.5) and put the diff.
No formatters (or no dest in csslint-stylish):
With csslint-stylish and no dest:
And using useOnlyBuiltInFormatter: true
:
A suggestion: I guess the expected behaviour is, if you set a formatter, it's replaces the first one (with or without dest), independently another param, like useOnlyBuiltInFormatter (inspired by jshint-stylish).
Ps.: wasn't strange using useOnlyBuiltInFormatter: true
results No violations?
And here a success case:
No formatter (or dest):
With stylish (no dest):
And with useOnlyBuiltInFormatter: true
:
Ps.: I've got some "undefined" with no reason, some idea?
And another suggestion: Inspired on jshint-stylish, it'd be nice results a green check with "no problems" and without ">> x files lint free."?
Thanks!
I just tried to use with the following version:
My grunt config (with or without dest comment):
But nothing seems to happen, the output (in terminal) is the same. Thanks!