clutchski / coffeelint

Lint your CoffeeScript.
http://www.coffeelint.org
Other
1.18k stars 171 forks source link

Tabs indented literate files are not supported #557

Closed KrysKruk closed 8 years ago

KrysKruk commented 8 years ago

Literate CoffeeScript indented using tabs instead of 4 spaces are not supported right now, because the invertLiterate implementation which forces 4 spaces style.

This issue was discussed by @swang and @AsaAyers during the review.

My opinion in this issue:

  1. Daring Fireball Markdown Specification says that:

To produce a code block in Markdown, simply indent every line of the block by at least 4 spaces or 1 tab.

  1. CoffeeScript parser supports tabs in literate style files.
  2. IMHO mixing 4 spaces with 2 spaces or tabs is the worst case scenario.

What do you think guys?