progval / Limnoria

A robust, full-featured, and user/programmer-friendly Python IRC bot, with many existing plugins.
https://docs.limnoria.net/
Other
621 stars 174 forks source link

Keep line-endings normalized & configure text editors to follow Limnoria style guidelines #1561

Closed Mikaela closed 1 year ago

Mikaela commented 1 year ago

As .gitattributes was already there I thought it might be a good idea to add end-of-line normalization of git from this decade.


When writing #1560, I noticed that my nvim was making tabs which is against Limnoria's style guidelines. Thus I added .editorconfig that follows the Limnoria style guidelines so supported editors and plugins will automatically attempt to use four spaces as indentation and stay within 79 lines.

I am not sure if I should add it to .gitattributes as export-ignore, because someone could download the repository archive and send a patch by email or pastebin and thus benefit from .editorconfig being present.

I think copying it to repositories containing plugins would also be a good idea.

progval commented 1 year ago

thanks!