jednano / eclint

Validate or fix code that doesn't adhere to EditorConfig settings or infer settings from existing code.
MIT License
307 stars 28 forks source link

Remove final lines when there are more than one #76

Closed fpuga closed 7 years ago

fpuga commented 7 years ago

What happens when more than one empty line exists and the end of the file and insert_final_newline=true is not well documented, and different users can have different expectations, but I think that most of the tools (i checked atom and emacs EditorConfig plugins) remove the extra lines. But eclint keeps the empty lines when there is more than one.

I think that it will be great if this tool removes the extra lines

BTW. This is a great tool.

fpuga commented 7 years ago

I make a PR about this #77