Adding an .editorconfig?

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Adding an .editorconfig?

AndrewJanke
Hi, Octave maintainers,

What are your thoughts on adding an .editorconfig file to the repo, to
enforce the code style in editors that support it?

http://savannah.gnu.org/bugs/?54223

Cheers,
Andrew

Reply | Threaded
Open this post in threaded view
|

Re: Adding an .editorconfig?

Oliver Heimlich
On 05.07.2018 17:15, Andrew Janke wrote:

> Hi, Octave maintainers,
>
> What are your thoughts on adding an .editorconfig file to the repo, to
> enforce the code style in editors that support it?
>
> http://savannah.gnu.org/bugs/?54223
>
> Cheers,
> Andrew
>
I like the idea.  Currently I have to either synchronize editor settings
on my various systems (this doesn't work so well when I work on
different projects with incompatible code styles) or use a proprietary
editor config file in the repository. Since EditorConfig is supported by
many editors (by plugins), I see it as a solution to this problem.

https://editorconfig.org/#download

Best
Oliver


signature.asc (499 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Adding an .editorconfig?

Sudeepam Pandey


On Thu, 5 Jul 2018, 9:13 p.m. Oliver Heimlich, <[hidden email]> wrote:
On 05.07.2018 17:15, Andrew Janke wrote:
> Hi, Octave maintainers,
>
> What are your thoughts on adding an .editorconfig file to the repo, to
> enforce the code style in editors that support it?
>
> http://savannah.gnu.org/bugs/?54223
>
> Cheers,
> Andrew
>

I like the idea.  Currently I have to either synchronize editor settings
on my various systems (this doesn't work so well when I work on
different projects with incompatible code styles) or use a proprietary
editor config file in the repository. Since EditorConfig is supported by
many editors (by plugins), I see it as a solution to this problem.

https://editorconfig.org/#download

Best
Oliver

I support the idea as well. When I was new to the community coding style was the thing I used to mess up the most. Even now, minor style errors do happen. Something that would enforce the coding style would be really helpful for the existing, as well as for the new contributors.

Best,
Sudeepam