rrdelaney / jadelint

:dragon: A linter for the Jade templating language
https://rrdelaney.github.io/jadelint
MIT License
6 stars 1 forks source link

Update docs if you want: now works with my Atom package #7

Closed ghost closed 9 years ago

ghost commented 9 years ago

I just incorporated jadelint into my linting package (that was previously using the jade compiler) https://atom.io/packages/linter-jade

rrdelaney commented 9 years ago

If you have any specific feature requests I'd be glad to implement them!

rrdelaney commented 9 years ago

The linter now catches compile errors. I mean, it always did but I just had some silly semantics in there that cause the linter to throw errors.

The error reported is in the normal format of {name, level, filename, line}, so I hope this helps!

ghost commented 9 years ago

Nice, if it's in the same format as the other errors they should be consumed automatically. And I think I can get ride of the jade compiler with that change :)

The other nice things to have in general would be:

Thanks for your efforts!

[edit] And random thing I just noticed -- I went to RPI :smiley:

rrdelaney commented 9 years ago

RPI thing is cool :+1:

And I process ignore rules because

I'll do the error code thing now!

rrdelaney commented 9 years ago

So normal errors are formatted

{
    "name": "...",
    "level": "...",
    "filename": "...",
    "line": 0
}

but now compile errors have a special code attribute that returns the jade compiler code (eg JADE:ELSE_NO_IF)