notslang / editorconfig-tools

Tools for verifying/fixing code style based on an EditorConfig file
https://npmjs.com/package/editorconfig-tools
GNU General Public License v3.0
54 stars 6 forks source link

Replaces indentation with comma when indent_style and indent_size is not specified #4

Closed jirutka closed 9 years ago

jirutka commented 9 years ago

Given file foobar:

Lorem
    ipsum
        dolor

and .editorconfig that does not specify indent_style nor indent_size.

When I run editorconfig-tools fix foobar, then it transforms the file to:

Lorem
,ipsum
,,dolor
notslang commented 9 years ago

Haha, that's a pretty weird way to fail... must be passing null to Array.join somewhere. Thanks for the report!