russplaysguitar / navel

Working towards a linter for cfscript
MIT License
2 stars 0 forks source link

Custom lint rules? #40

Open russplaysguitar opened 11 years ago

russplaysguitar commented 11 years ago

It might be useful if custom lint rules could be defined on a per-component basis. It could be used for situations where it is bad practice to use a component a certain way, but that doing so won't throw an error.

For instance, if you're supposed to call obj.close() after obj.open(), the linter could check for that.

This gets into some pretty insane meta-programming and I have no idea how this would be implemented, but I thought I'd bring it up anyways. Definitely falls into the "nice to have", low-priorty category.

atuttle commented 11 years ago

I think we should just create a label for ideas like this and leave them out to pasture until we've got the basics done. Good idea to log it while it's on your mind though.

russplaysguitar commented 11 years ago

agreed