Skip to content
This repository has been archived by the owner on Aug 7, 2023. It is now read-only.

Handle messages with no line #38

Merged
merged 1 commit into from
Aug 6, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions lib/main.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,11 @@ module.exports =
if lintResult.messages.length < 1
return toReturn
for data in lintResult.messages
line = data.line - 1
col = data.col - 1
if not data.rollup
line = data.line - 1
col = data.col - 1
else
helpers.rangeFromLineNumber(textEditor, 0)
toReturn.push({
type: data.type.charAt(0).toUpperCase() + data.type.slice(1),
text: data.message,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"license": "MIT",
"dependencies": {
"csslint": "git+https://github.com/AtomLinter/csslint",
"atom-linter": "^3.0.0"
"atom-linter": "^3.1.0"
},
"providedServices": {
"linter": {
Expand Down