Return-Path: X-Original-To: apmail-couchdb-dev-archive@www.apache.org Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1819010E0F for ; Tue, 1 Apr 2014 12:17:53 +0000 (UTC) Received: (qmail 24043 invoked by uid 500); 1 Apr 2014 12:17:51 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 23937 invoked by uid 500); 1 Apr 2014 12:17:49 -0000 Mailing-List: contact dev-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list dev@couchdb.apache.org Received: (qmail 23928 invoked by uid 99); 1 Apr 2014 12:17:49 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Apr 2014 12:17:49 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of bchesneau@gmail.com designates 209.85.216.42 as permitted sender) Received: from [209.85.216.42] (HELO mail-qa0-f42.google.com) (209.85.216.42) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Apr 2014 12:17:45 +0000 Received: by mail-qa0-f42.google.com with SMTP id k15so9642015qaq.1 for ; Tue, 01 Apr 2014 05:17:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=DdIa/eYjF96rb/+qIv32P6cs3yVVlHIvusiDuatAO9s=; b=I1Dmr5cl2c0mplXksXmtflnMRmHvkN62hIQ/CbqMnrABf5eB9quRY2RyrsfMaGXLQG JHw3DnX+SXIsq3NvQe8CTDYRhF5CCtteusC/wX/rXlfyicDM4L2MTjKiG3XF8wWELUnl b25l/jY6oaq4RKFrPijbaoS2Vl52NbiPxnT+d72HAmMl3Nhom3vY/ABGcVnn/c/R43Qo x9wV2Cu1g7B3hJqAeE8FNgTEhXi/13LoS1Ym5XJBEJDMycWxAScnSlK/SbvWZGVqVHGL mf+9QFUCkmvKYksxrQaHw732h+zPpC0piliHIbUEE9pPeMaAe6v52vwP69czDuo52/kx VHRw== X-Received: by 10.140.29.6 with SMTP id a6mr14746213qga.57.1396354644907; Tue, 01 Apr 2014 05:17:24 -0700 (PDT) MIME-Version: 1.0 Received: by 10.96.30.230 with HTTP; Tue, 1 Apr 2014 05:17:04 -0700 (PDT) In-Reply-To: <2971420.118.1396143746576.JavaMail.Joan@RITA> References: <2971420.118.1396143746576.JavaMail.Joan@RITA> From: Benoit Chesneau Date: Tue, 1 Apr 2014 14:17:04 +0200 Message-ID: Subject: Re: [POLL] Erlang whitespace standards To: "dev@couchdb.apache.org" Content-Type: multipart/alternative; boundary=001a113a42c6971e0304f5fa267c X-Virus-Checked: Checked by ClamAV on apache.org --001a113a42c6971e0304f5fa267c Content-Type: text/plain; charset=ISO-8859-1 On Sun, Mar 30, 2014 at 3:42 AM, Joan Touzet wrote: > Thanks, Benoit. Sadly there's almost no indentation / whitespace info > in those rules - they're more about the overall shape of the code. I > do like them, though! > > -Joan > > Well you can see in that file some indentation used in the example. After that we should just avoid any tab in the code... Anyway imo using indentation provided in emacs or vimerl (which are similar) is quite enougg. It follows the common rules used inside erlang. - benoit > ----- Original Message ----- > From: "Benoit Chesneau" > To: dev@couchdb.apache.org > Sent: Saturday, March 29, 2014 4:44:58 PM > Subject: Re: [POLL] Erlang whitespace standards > > I filled the poll, but maybe we could just use the erlang style rules: > > http://www.erlang.se/doc/programming_rules.shtml > > This is by default in vimerl, not sure for emacs but most probably. > > - benoit > > > On Fri, Mar 28, 2014 at 10:11 PM, Joan Touzet wrote: > > > Time for everyone's favourite topic: whitespace standards. > > > > I know many of you are fed up with not being able to auto format in > > your favourite editor and match the CouchDB Erlang coding standards, or > > receiving pull requests that are formatted poorly. > > > > I'd like to fix that with an appropriate whitespace standard, and > > supplementary plugins for vi and emacs that will just Do The Right Thing > > and let us all stop worrying about whitespace corrections in pull > > requests. > > > > The basic rules seem to be: > > > > * Indent everything 4 spaces (not 2 or 8, and no tabs) > > * Single blank lines between functions > > * No blank lines between guarded versions of the > > same function (e.g. couch_btree.erl#L36-L47) > > > > but beyond that there is some inconsistency in both the code and in > > discussion with other devs. > > > > Here's a short poll I threw together in Google Docs. I'd love it if you > > could take 5 minutes to reply to it. Early next week I'll summarize and > > post the results. Once we have agreement we can toss up a super small > > Markdown guide / wiki page / whatever and get started on the emacs/vi > > modifications to support it. > > > > > > > https://docs.google.com/forms/d/1b7KcQGgNbSCZVRwLjrUl5Z6C2TBx8X1btlU5fwrNHpg/edit# > > > > Thanks, > > Joan > > > --001a113a42c6971e0304f5fa267c--