Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:100990 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 33951 invoked from network); 30 Oct 2017 08:38:47 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 30 Oct 2017 08:38:47 -0000 Authentication-Results: pb1.pair.com smtp.mail=kris.craig@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=kris.craig@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.218.45 as permitted sender) X-PHP-List-Original-Sender: kris.craig@gmail.com X-Host-Fingerprint: 209.85.218.45 mail-oi0-f45.google.com Received: from [209.85.218.45] ([209.85.218.45:43112] helo=mail-oi0-f45.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 95/05-07742-415E6F95 for ; Mon, 30 Oct 2017 03:38:45 -0500 Received: by mail-oi0-f45.google.com with SMTP id c77so20696678oig.0 for ; Mon, 30 Oct 2017 01:38:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=7JJuMH+TXcqyYC0aWqOE5Om7E0M7bmG6bHwsZ+HIBLw=; b=hH6h32o/a4pAwzdwVjRbPjD/UmBYXV60OgUUFf0TVYfUNkWDclG8+nB+FAEKo1y6Bq OKkapzEP8zX6h5xrPYTuQmFH1OLwlbe6raebPWWBJj22gqgagGeOOKlwRZa9DsaBShQp SuF8LLszmYnedyV8zsSHbKmYwwlQUUi/EmeSAAFWSqB22Kz1Hc+fEOXawMAMYACr7s0s I+elUpTb9upVsabaoIBp22/1sdN8nP0inGChh87X3SQUJDuVttZ/XDzNYQZHcvt6JFZV FSuCGDptH80UF7+oICEANIHR+wVBY+s38EEEHrCVi3x0PWKXUnG7+pP6fFBI1rQAssyl gOrw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=7JJuMH+TXcqyYC0aWqOE5Om7E0M7bmG6bHwsZ+HIBLw=; b=Ftv57cIA0aSYOBf4Kj2SgyzWlZ5K3MtEAAIUOkZAI8sNDZNbaz6Rbdl7FGRZh0nEGo i9eCT/UKXhXiXZJI/W32J0lJkPLKcZZu0HdlYOtjSE6n4v3Gwb/Y7vCwuxfFY4zFjVNB /dHG6OoacxcN2qwyZen5NoyELpLAyTxJNPwDK/DAFg4RhrYa5z83dYQRvx6WNUcXhalt iF2Ara9FHmXTDXNMNVZjDbP0660+Wtu99ubwSof6xlzlgoQBVKiQNsBxXF3i+GjGS8ck /GE5ITYftzRxxyqNuSV3Io3EmDvFF8603iwbITy91X7S7la1WxIOpjyMou+QznO/RBa2 dOXg== X-Gm-Message-State: AMCzsaVXnMgfuzq+IZZwX3IcgO1sqFSEpjbrIaed0LrzG3DSYrgeSTgt JZkN/wI+LPY48ua2eeZx9drLr7uJeEVSi621RaA= X-Google-Smtp-Source: ABhQp+TMuiqAi0s7PEHPO4HjRTRXg1fGdLzsxIaP98aBf4yb4vW1oqN2N0IuegOLddFFcWwrGMQsnxZEdgfSzF+gHd0= X-Received: by 10.157.86.186 with SMTP id o55mr4545028oth.88.1509352720997; Mon, 30 Oct 2017 01:38:40 -0700 (PDT) MIME-Version: 1.0 Received: by 10.202.235.20 with HTTP; Mon, 30 Oct 2017 01:38:40 -0700 (PDT) In-Reply-To: <400665f7-3efa-8308-aff2-b721f9c7a601@gmx.de> References: <400665f7-3efa-8308-aff2-b721f9c7a601@gmx.de> Date: Mon, 30 Oct 2017 01:38:40 -0700 Message-ID: To: "Christoph M. Becker" Cc: Nikita Popov , PHP internals Content-Type: multipart/alternative; boundary="94eb2c0e71fcc6ab53055cbf9075" Subject: Re: [PHP-DEV] Re: Consistent indentation for test files From: kris.craig@gmail.com (Kris Craig) --94eb2c0e71fcc6ab53055cbf9075 Content-Type: text/plain; charset="UTF-8" On Sat, Oct 28, 2017 at 5:42 AM, Christoph M. Becker wrote: > On 28.10.2017 at 13:59, Nikita Popov wrote: > > > Right now we do not have a consistent standard for the indentation of > PHPT > > files. Some people create space-indented files, others create > tab-indented > > files. Over time, indentation invariably starts to mix, because > developers > > with different indentation settings work on one file. > > > > Here are the current statistics for code in .phpt files: > > > > total: 15515 > > prefer tabs: 4273 (27.5%) > > prefer spaces: 6307 (40.7%) > > draw: 77 (0.5%) > > no indentation: 4858 (31.3%) > > > > There are 1824 (11.8%) files that contain mixed tab and space > indentation. > > The indentation was determined based on the first character of a line. > > Thanks for bringing this up! > > > I would like to propose that we establish a common standard by > > a) using space indentation for all future tests (as they currently form > the > > majority), and > > b) reindenting existing test files to use space indentation. > > +1 > > I'm rather baffled that doesn't > address this issue at all. > > -- > Christoph M. Becker > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > Those stats can be a bit misleading, though, as I've observed that many (if not most) IDEs are configured to automatically convert tab characters to spaces. Therefore, it stands to reason that at least some of the "prefer spaces" category would actually fall under "prefer tabs". I suspect the tabs and spaces groups are much closer together, though it's impossible to say how much since there's no way to control for that variable. Still, I would caution people not to read too much into those statistics. A common standard would be nice, but I fear it might discourage some from contributing tests. Also, how would we actually enforce this? Would we reject any tests that don't conform to this or fix them, ourselves? Either way, it would require someone to actually do the work. Another possible option would be to use some kind of automated conversion process. But I personally think these solutions are more trouble than they're worth. So long as the spacing is consistent within each file, I can live with it. --Kris --94eb2c0e71fcc6ab53055cbf9075--