Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:100982 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 93420 invoked from network); 29 Oct 2017 18:41:27 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 29 Oct 2017 18:41:27 -0000 Authentication-Results: pb1.pair.com header.from=jakub.php@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=jakub.php@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.161.172 as permitted sender) X-PHP-List-Original-Sender: jakub.php@gmail.com X-Host-Fingerprint: 209.85.161.172 mail-yw0-f172.google.com Received: from [209.85.161.172] ([209.85.161.172:45348] helo=mail-yw0-f172.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 4B/F0-07742-6D026F95 for ; Sun, 29 Oct 2017 13:41:26 -0500 Received: by mail-yw0-f172.google.com with SMTP id j4so9708331ywb.2 for ; Sun, 29 Oct 2017 11:41:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=pmefWUPl3zyaWmKNr6BrEGfLG1Dz4CIDqR6/Bae5abk=; b=q0d58mu+f+/OXMAVoQqq8vmBpDh1RBOYvmcvtFeR0lmGYchZ+HzFWXhA2XVV6aBDet KJ7SrJ2HAGdzClf6O2zYZthgkUdG1C7cxIDp7qSqu6TRfhYn/OtxT3emSjA/PwemtsV/ t0kC5VzgF65BxIFwf/dQ8LpPndqR1OisrQZRFWdu0RF7g8GNmZhd7Vxkowo6jYkGmdvE aw5m0u6OwLQXuJwxxLDkOBmywcHqhxmHRlSgHP3cCNgJtpAZBbrT+j6kI/29X4MqJmcw GfOOv3OFOhd+Bkt2qqUgUbS2Ev+LU9VvXlJi457gOL1N7qLjouKH5DzcppYpCR3kZ/MN Zk0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=pmefWUPl3zyaWmKNr6BrEGfLG1Dz4CIDqR6/Bae5abk=; b=Kc5T4fqtH019v3l+DLgTRGmbkRNJSh8vSDUJX2fRidhdqI7wFNu7qXFawuNfjFDNDZ P0N+yed2wiTncD4hja+7By+fpzybG7iFQqluI7mwflGWLhl4MRcUQ3gdyRhMyAFwhtCR BXfAh91CUH/N8DXo0YpbjxpjYRhtuAHe0flEZ+rxIloEZy5E02HZaRULaIfwrvUX95MD ulCTJwzVRjuRl7MWY8188i4gOCZ1HoYDbZkx+x3bKVsDKBxmNGxu9FyMI+KBpJDPSNFi a/E4Cis89YzUxr5SbRGvKShhVoSBEgCmKOe4qOBCDfx1okHIqnQlT9tXKnSEu4sbnmFe v4CA== X-Gm-Message-State: AMCzsaUDp0YbrInUsSOnmnn3ggKUJBTXCFfEvqcErM0ed0c80W1oRwVR M/laZ5rPqB9a9foS2z/6LcYQezHhxVQC446XOwg= X-Google-Smtp-Source: ABhQp+Q08zJNlvk10K7ZDmExxfLKAlz6zpGkk9TfHig00EdnoBBoi2sIiMrrO3LPpiE+Vo4FeC0y5YovkRKh6+uAymg= X-Received: by 10.13.209.3 with SMTP id t3mr4447600ywd.60.1509302484237; Sun, 29 Oct 2017 11:41:24 -0700 (PDT) MIME-Version: 1.0 Sender: jakub.php@gmail.com Received: by 10.129.92.196 with HTTP; Sun, 29 Oct 2017 11:41:23 -0700 (PDT) In-Reply-To: References: Date: Sun, 29 Oct 2017 18:41:23 +0000 X-Google-Sender-Auth: XX4_MNfZz0k6JsiJGLCC8jFY0kA Message-ID: To: Nikita Popov Cc: PHP internals Content-Type: multipart/alternative; boundary="001a114e5e146e8475055cb3ded5" Subject: Re: [PHP-DEV] Consistent indentation for test files From: bukka@php.net (Jakub Zelenka) --001a114e5e146e8475055cb3ded5 Content-Type: text/plain; charset="UTF-8" On Sat, Oct 28, 2017 at 12:59 PM, Nikita Popov wrote: > Hi internals, > > 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. > > 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 > I usually use tabs for phpt as it's a bit simpler with my IDE that I use for PHP core dev (QtCreator) and mostly the core exts that I work with had tabs. That said I wouldn't be against making it the same and use spaces everywhere if we also start using PSR-2 for tests - it's not just an indentation that is a mess... > b) reindenting existing test files to use space indentation. > > +1 but it needs to be done in the lowest active branch otherwise it will result in conflicts when changing existing tests (it is sometimes useful for extending tests)... Cheers Jakub --001a114e5e146e8475055cb3ded5--