Add .editorconfig to help with coding style - #199
Conversation
|
I don't think this is necessary, as we already have one at https://github.com/nextcloud/server/blob/master/.editorconfig. It is automatically used if you develop the app inside the apps/ directory and for everything else we already have php-cs-fixer, eslint and stylelint. |
This is true if your Nextcloud dev install is a clone of the Git repository. But if you work in a production release, .editorconfig is not included. If all you plan to do is develop an app, you don't really need the whole Nextcloud repo. |
This is not recommended, so we won't specifically support it. You should always use a proper git checkout of the server to develop apps. |
Ok, then. Thanks for your answer. |
This PR adds an EditorConfig. It's a widely supported file format which can help a lot with respecting Nextcloud coding style.
If your editor supports it, whatever default formatting settings you use will be overridden by those in .editorconfig when working on your Nextcloud app. And if your editor doesn't support it, it does nothing so it's harmless.