Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:80223 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 27071 invoked from network); 6 Jan 2015 07:42:34 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 6 Jan 2015 07:42:34 -0000 Authentication-Results: pb1.pair.com header.from=jacob.bednarz@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=jacob.bednarz@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.192.175 as permitted sender) X-PHP-List-Original-Sender: jacob.bednarz@gmail.com X-Host-Fingerprint: 209.85.192.175 mail-pd0-f175.google.com Received: from [209.85.192.175] ([209.85.192.175:65189] helo=mail-pd0-f175.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D2/00-26786-9E19BA45 for ; Tue, 06 Jan 2015 02:42:33 -0500 Received: by mail-pd0-f175.google.com with SMTP id g10so29877877pdj.34 for ; Mon, 05 Jan 2015 23:42:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:date:to:cc:subject:in-reply-to:message-id:references :user-agent:mime-version:content-type; bh=BH7DFUhCGzdpVcKBGBuAGCNUsZbA97jPzhVydycAGtQ=; b=N00n4bWFhlB3jR1kIlav4PvuEKa1Z29rCLf+AxsYyoIszUJwOAexMI+rai9kpGW9nF 1jR1cvsqxoWqnMSTCzDY5jV02JTD+n0c7X/J0MMRp8GdBX9vZZTkG+ytkPk+lYxKXhBG kzfiSNl06gSiLL6L42OGC+DBLjcFy/s0fUj1oHF0ewwQIfdlaH7O77e3b7rWfZnjN+YT wuhMWtIw3WBZhrtL8EgC2dPcLLwntSrdrFd1BKJm4GvTVuj1cHdK/DyJaJXcJ0/6aOHF Uu01Aqo5YxKNBbLQWm5wWLJC/zJ7icBJYvOu42ZHU0sMpuFWLY2nx1hqFGA7c4VpaFef jP/g== X-Received: by 10.68.242.137 with SMTP id wq9mr97495196pbc.98.1420530150013; Mon, 05 Jan 2015 23:42:30 -0800 (PST) Received: from [172.20.10.2] ([101.168.111.168]) by mx.google.com with ESMTPSA id pv3sm56057346pbb.56.2015.01.05.23.42.26 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 05 Jan 2015 23:42:29 -0800 (PST) X-Google-Original-From: Jacob Bednarz Date: Tue, 6 Jan 2015 17:42:26 +1000 (AEST) To: Pierre Joye cc: Stanislav Malyshev , PHP Internals In-Reply-To: Message-ID: References: <54AB172E.6040901@gmail.com> User-Agent: Alpine 2.11 (OSX 23 2013-08-11) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Subject: Re: [PHP-DEV] Cleaning up dangling whitespace From: jacob.bednarz@gmail.com (Jacob Bednarz) Hey > That reminds me something I was wondering, would it be possible to > have a kind of CS check on push? :) Yep - PHPCS[1] is quite good, easy to configure and has good editor integrations in the community. The automated code standards check can be achieved using git-hooks[2] which is already provided to us just by using git. One thing to keep in mind is that the PHP lint is only run on files you modified, not all within the repository. Stas, let me know if you would like a hand implementing/cleaning up this repository as I am happy wqto help. [1]: https://github.com/squizlabs/PHP_CodeSniffer [2]: http://git-scm.com/docs/githooks On Mon, 5 Jan 2015, Pierre Joye wrote: > On Mon, Jan 5, 2015 at 2:58 PM, Stanislav Malyshev wrote: >> Hi! >> >> The code in the PHP source repo has a lot of random dangling whitespace >> at the end of lines, which looks sloppy and produces some weird effects >> in diffs because some editors auto-clean it and some do not. I'd like to >> clean it up (it's easy to do automatically) in master, but this produces >> a big patch that may also create some conflicts with existing pull reqs >> (easily resolved, but still). >> So, I'd like to ask if there are any objections to such cleanup? If not, >> then I'll do it, probably next weekend. > > Thanks for asking :) > > And go ahead, they should not be there in the 1st place, we have CS > for a reason :) > > That reminds me something I was wondering, would it be possible to > have a kind of CS check on push? :) > > Cheers, > -- > Pierre > > @pierrejoye | http://www.libgd.org > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > >