Editorconfig

Everything about development and the OpenMW source code.
Post Reply
User avatar
AnyOldName3
Posts: 2668
Joined: 26 Nov 2015, 03:25

Editorconfig

Post by AnyOldName3 »

A bunch of IDEs and text editors either have native support for EditorConfig or support it via a plugin. Adding a .editorconfig file to the OpenMW git repository should reduce the chances of any bother caused by using the wrong indentation type, for example. My first big pull request was tripped up by having mismatched indentation as my IDE decided to use a different style than the one already used by the files I was working on, and it had to be noticed by the CI system. Since then, I've had an EditorConfig file in my local clone, and everything has 'just worked'.

More information is here: http://editorconfig.org/

I'm probably going to go and set up a pull request for this now.
User avatar
AnyOldName3
Posts: 2668
Joined: 26 Nov 2015, 03:25

Re: Editorconfig

Post by AnyOldName3 »

Here's a PR: https://github.com/OpenMW/openmw/pull/1407

Something broke with the CI, and it doesn't look like it's got anything to do with the thing I changed.
User avatar
AnyOldName3
Posts: 2668
Joined: 26 Nov 2015, 03:25

Re: Editorconfig

Post by AnyOldName3 »

It's been merged now, so I guess that Scrawl agrees with the idea.
Post Reply