timwaters / mapwarper

free open source public map georeferencer, georectifier and warper
http://mapwarper.net
MIT License
196 stars 80 forks source link

Add .editorconfig #121

Closed kamataryo closed 7 years ago

kamataryo commented 7 years ago

Keep consistency about trailing whitespace triming. This may be helpful for the case of https://github.com/timwaters/mapwarper/pull/120#issuecomment-296447875 and save communication costs.

How about this?

timwaters commented 7 years ago

Was the extra whitespace was being added by your editor, rather than it being removed?

kamataryo commented 7 years ago

No, my text editor was trying to remove extra whitespaces. the .editorconfig is a configuration file for EditorConfig. It defines and maintains consistent coding styles between different editors and IDEs. In this case, I add a configuration not to trim extra trailing whitespace. It prevents unnecessary whitespace trimming contamination. We don’t care about tiny whitespace remaining problem, so that It's better for EditorConfig to decide where to put whitespace, for consistency and time saving.

timwaters commented 7 years ago

Ahh yes! I see. Many thanks. I was looking at the revert commit, rather than the initial one, sorry!

kamataryo commented 7 years ago

This makes easier to make commit , Thanks a lot!