Re: Cleaning up dangling whitespace
| From: | Pierre Joye | Date: | Tue, 06 Jan 2015 08:05:59 +0000 |
| Subject: | Re: Cleaning up dangling whitespace | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-80226@lists.php.net to get a copy of this message | ||
On Mon, Jan 5, 2015 at 11:48 PM, Pierre Joye <pierre.php@gmail.com> wrote:
> On Mon, Jan 5, 2015 at 11:42 PM, Jacob Bednarz <jacob.bednarz@gmail.com> wrote:
>> 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
>
> I did not PHPCS supports C. Or am I missing something?
That's what I had in mind:
https://gist.github.com/kblomqvist/bb59e781ce3e0006b644
rules to be adapted :)
--
Pierre
@pierrejoye | http://www.libgd.org