shprink/BttrLazyLoading — pull request #4 by thelinmichael (2014-01-21 23:21:45+00:00)
Title: Coffeelinting

Hey!

Added linting (http://www.coffeelint.org/) to the Cakefile under the taskname 'lint'. It outputs errors and warnings according to the rules in coffeelint.json (see homepage for explanation of every rule).

A lot of the changes are due to whitespace removal, and other small stuff that the linter complains about. One rule that seems really restrictive is the indentation rule, which currently isn't very satisfied with the indentation in BttrLazyLoading.coffee. I think the problem stems from the fact that indentation is done with tabs instead of spaces. By default, coffeelint complains about tabs, but it's allowed in the rules under the rule name 'no_tabs'.

Linting isn't the most useful thing if there are no typos and errors, but can be nice to catch them whenever it does happen.