Skip to Content.
Sympa Menu

devel - Re: [sympa-developpers] Coding style guidelines

Subject: Developers of Sympa

List archive

Chronological Thread  
  • From: "Stefan Hornburg (Racke)" <address@concealed>
  • To: address@concealed
  • Subject: Re: [sympa-developpers] Coding style guidelines
  • Date: Wed, 23 May 2018 10:47:02 +0200

On 05/23/2018 10:10 AM, Luc Didry wrote:
> Hello,
>
> I created an issue on Github about coding style guidelines
> (https://github.com/sympa-community/sympa/issues/319).
> Please, keep the discussion about the coding style here, on the ML,
> the issue is to remind us to do it.
>
> In order to ease reading code, it's good to ensure that the coding
> style is always the same (well, as much as possible)
>
> Right now, we have minimal vim modelines (thx to Soji):
> - indent with 4 spaces, no tabs
>
> But there is a lot of other coding style stuff that could (should) be
> discussed, in order to have a coherent coding style in all codebase, like:
> - max line width
> - to put brace on the same line than the `if` (`while`, `for`, etc)
> - etc
>
> After choosing the coding style, we can create a .perltidyrc file, and
> add a test on the continuous integration to ensure style consistency.
>
> First thing: do we agree about the 4 spaces and no tabs? (I do)

I agree with that.

Regards
Racke


--
Ecommerce and Linux consulting + Perl and web application programming.
Debian and Sympa administration. Provisioning with Ansible.



Archive powered by MHonArc 2.6.19+.

Top of Page