Repository navigation
Feature request: better lint support #58
Description
Activity
You mean the checksyntax command here, right?
I would need to check the difference between
coffee -landcoffeelintand see which one would be better. Then compare it to the current method... Bit of a research to be done on my part. I'll get on with it when I'm on my own computer.Certainly it would be something nice to add! I have to ask though, is there a particular reason why you are requesting this? I mean what are the pro's and cons to the current state and
coffeelintorcoffee -l?I'm asking this to improve the quality of the solution based on your needs.
For ST2 alredy exists plugin https://github.com/SublimeLinter/SublimeLinter, this one works with coffee via
coffee -l.As I know
coffee -lonly check is syntax ok or not. Nothing else! With http://www.coffeelint.org/ you can lint your code with some "code conversation". For example class name MUST be in camel case.Also there are https://github.com/dotCypress/CoffeeLint. But doesn't work for me.
Here will be awesome to highlight line where you have lint error, not only message.
I can't find lint tool that can check undefined or unused variables. Idea - use jshint.
Is it okay if it displays the output of linting in that output panel I made for
run script? The one you get withalt shift Ror was itctrl shift RIt is ok. But of course it is better to highlight line with error.
Do you know how to highlight ? Or do you mean select the line that has error? Do you want it to be displayed like the command pallet?
Do you know how to highlight ?
Not yet. Best way - like in sublimelint plugin. Command pallet - good too.
sweet, I was going to get started on that too. Here paste this place holder on where coffeelint functions start in py. It helps locate things on the scrollbar.
# e88~-_ 88~\ 88~\ 888 ,e, d8 # d888 \ e88~-_ _888__ _888__ e88~~8e e88~~8e 888 " 888-~88e _d88__ # 8888 d888 i 888 888 d888 88b d888 88b 888 888 888 888 888 # 8888 8888 | 888 888 8888__888 8888__888 888 888 888 888 888 # Y888 / Y888 ' 888 888 Y888 , Y888 , 888 888 888 888 888 # "88_-~ "88_-~ 888 888 "88___/ "88___/ 888____ 888 888 888 "88_/ # ######################################################################################3b506d9
Now you can lint current file viacoffeelint.Coffee: Lintcommand.

What do you think about add better lint support?
Tools:
coffee -lcoffeelintAlso I think it is possible to add jshint support (with back to coffee report).