kevinsawicki/grunt-lesslint — pull request #5 by jraasch (2013-10-09 12:46:50+00:00)
Title: Imports option relative to Gruntfile + print filenames of error causing imports.

The current implementation of the `imports` option seemed unusal. The globbing patterns were not matched relative to the `Gruntfile` as is expected by a grunt task. Plus, the test case did not actually test the functionality, but just ran two tasks:

```coffee
src: ['**/fixtures/imports.less']
imports: ['**/fixtures/file.less']
```

With this pull request
* the `imports` options is matched relative to the `Gruntfile` and
* is actually tested and
* **filenames** of the `.less` files the errors came from are printed in front of the line number, e.g.

```bash
Running "lesslint:dev" (lesslint) task
src/css/editor.less (4)
Element (abbr.initialism) is overqualified, just use .initialism without element name. Dont use classes or IDs with elements (a.foo or a#foo). (overqualified-elements)
>> src/css/typography.less 150: abbr.initialism {
Expected end of value but found '\9'. Properties should be known (listed in CSS3 specification) or be a vendor-prefixed property. (known-properties)
>> src/css/forms.less 49: margin-top: 1px \9; /* IE8-9 */
Dont use adjoining classes. (adjoining-classes)
>> src/css/buttons.less 38: &:active,
>> src/css/buttons.less 45: &.disabled,

>> 4 lint errors in 1 file.
Warning: Task "lesslint:dev" failed. Use --force to continue.
```