Return-Path: Delivered-To: apmail-couchdb-commits-archive@www.apache.org Received: (qmail 93186 invoked from network); 30 Nov 2010 13:45:40 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 30 Nov 2010 13:45:40 -0000 Received: (qmail 7622 invoked by uid 500); 30 Nov 2010 13:45:39 -0000 Delivered-To: apmail-couchdb-commits-archive@couchdb.apache.org Received: (qmail 7494 invoked by uid 500); 30 Nov 2010 13:45:39 -0000 Mailing-List: contact commits-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 commits@couchdb.apache.org Received: (qmail 7487 invoked by uid 500); 30 Nov 2010 13:45:38 -0000 Delivered-To: apmail-incubator-couchdb-commits@incubator.apache.org Received: (qmail 7482 invoked by uid 99); 30 Nov 2010 13:45:38 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Nov 2010 13:45:38 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.131] (HELO eos.apache.org) (140.211.11.131) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Nov 2010 13:45:35 +0000 Received: from eosnew.apache.org (localhost [127.0.0.1]) by eos.apache.org (Postfix) with ESMTP id CAC05A80; Tue, 30 Nov 2010 13:45:14 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable From: Apache Wiki To: Apache Wiki Date: Tue, 30 Nov 2010 13:45:14 -0000 Message-ID: <20101130134514.60656.83814@eosnew.apache.org> Subject: =?utf-8?q?=5BCouchdb_Wiki=5D_Trivial_Update_of_=22Coding=5FStandards=22_b?= =?utf-8?q?y_RobertNewson?= X-Virus-Checked: Checked by ClamAV on apache.org Dear Wiki user, You have subscribed to a wiki page or wiki category on "Couchdb Wiki" for c= hange notification. The "Coding_Standards" page has been changed by RobertNewson. The comment on this change is: Use a numbered list instead of bullet points. http://wiki.apache.org/couchdb/Coding_Standards?action=3Ddiff&rev1=3D3&rev2= =3D4 -------------------------------------------------- = First, some general rules: = - * Always use spaces for indentation, not tabs, except in Makefiles. + 1. Always use spaces for indentation, not tabs, except in Makefiles. - * Use four spaces for indentation in Erlang and C code, two spaces in HT= ML, CSS, and Javascript. + 1. Use four spaces for indentation in Erlang and C code, two spaces in H= TML, CSS, and Javascript. - * Try to keep lines shorter than 80 characters. + 1. Try to keep lines shorter than 80 characters. - * When you edit a file, try to stick with the conventions used in the su= rrounding code. + 1. When you edit a file, try to stick with the conventions used in the s= urrounding code. - * Avoid trailing spaces and newlines in your files. Good editors usually= have a configuration option that prevents this from happening. + 1. Avoid trailing spaces and newlines in your files. Good editors usuall= y have a configuration option that prevents this from happening. - * Avoid mixing purely cosmetic changes (such as removing trailing white-= space) with functional changes, as that makes review of the actual change (= whether it=E2=80=99s a check-in or a patch) much more difficult. + 1. Avoid mixing purely cosmetic changes (such as removing trailing white= -space) with functional changes, as that makes review of the actual change = (whether it=E2=80=99s a check-in or a patch) much more difficult. = For more detailed coding conventions for Erlang code, please see the [[ht= tp://www.erlang.se/doc/programming_rules.shtml|Erlang Programming Rules and= Conventions]]. =20