Skip to content

Commit

Permalink
fixes #61
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmednuaman committed Aug 4, 2014
1 parent be919ee commit ec50fc9
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 9 deletions.
14 changes: 14 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
GEM
remote: https://rubygems.org/
specs:
rainbow (2.0.0)
sass (3.3.11)
scss-lint (0.24.1)
rainbow (~> 2.0)
sass (~> 3.3.0)

PLATFORMS
ruby

DEPENDENCIES
scss-lint (~> 0.24.0)
20 changes: 11 additions & 9 deletions tasks/lib/scss-lint.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,16 +71,18 @@ exports.init = function (grunt) {

matches = matchesRe.exec(result);

if (fileName !== matches[1]) {
fileName = matches[1];
output[fileName] = [];
if (matches) {
if (fileName !== matches[1]) {
fileName = matches[1];
output[fileName] = [];
}

output[fileName].push({
line: matches[2],
type: matches[3],
description: matches[4]
});
}

output[fileName].push({
line: matches[2],
type: matches[3],
description: matches[4]
});
});

return output;
Expand Down
8 changes: 8 additions & 0 deletions test/fixtures/pass.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,11 @@
color: #000;
display: block;
}

.test {
.foo,
.bar {
margin: 10px;
padding: 10px;
}
}

0 comments on commit ec50fc9

Please sign in to comment.