 | News Feed |
 | Jobs Feed |
Sections
|
| feed this: |  |
Freek Lijten's Blog: Git commit hooks using PHP
by Chris Cornutt July 06, 2011 @ 09:48:51
In this new post from Freek Lijten he looks at a set of git commit hooks written in PHP for making things happen before, during and post commit.
Git hooks are usually found inside the .git/hooks folder of your git repository. Git tends to provide sample hook files there which are postfixed with a .sample extension. These examples are written as shell scripts. Take a look at them if you want, but today we're talking PHP!
He briefly touches on the types of hooks you can set up and includes two example scripts showing a pre-commit lint test for the changed files and a check during the commit on the message given for a certain standard (in their case, it must start with a three letter code).
voice your opinion now!
git commit hook tutorial precommit postcommit commitmsg example
Christian Weiske's Blog: How to integrate PHP_CodeSniffer with Git repositories?
by Chris Cornutt May 27, 2011 @ 11:16:48
Christian Weiske has a problem he hopes you can help with - he's trying to get the PHP_Codesniffer tool integrated into his git workflow (well, the workflow of his team) as an automatic process that runs on commit. Unfortunately he's having some issues.
At work, we used a SVN server and enforced our project coding standard with a pre-commit hook on the server that ran PHP_CodeSniffer. Whenever a developer tried to commit some code that does not match the standard, he got it rejected. [...] The only way to enforce the standard is a pre-receive hook on our central Git repository server that all devs push to. Just installing the SVN hook on it isn't the solution, though.
Because of how git handles commits (possibly multiple in one push) the usual methods won't work. Other tricky things like file renaming and allowing for legacy code check-ins are also needed. He's posted the question on StackOverflow too, but no one's come up with a good answer yet (at the time of this post).
voice your opinion now!
git phpcodesniffer codesniffer commit hook stackoverflow
Blue Parabola Blog: How do you measure 'contribution'?
by Chris Cornutt March 02, 2009 @ 08:45:19
On the Blue Parabola blog Keith Casey asks the question "how do you measure an individual's contribution?"
In the past few weeks, I've been working fast and furious at getting web2project to our v1.0 milestone. As part of that effort, I track open issues, problematic modules, community feedback via the forums, death threats via all methods, and other related aspects.
He suggests a few different ideas for measuring how much a user has contributed: lines of code, commit count, issues they've reported, number of issues closed or community involvement. Of course, none of these can truly measure how much an individual has participated in a project, especially since it could be a mix of several of them combined into a whole as the "involvement persona" of any given person.
voice your opinion now!
contribution project involvement linesofcode issues commit
SaniSoft Blog: Code sniffs for CakePHP and then some more
by Chris Cornutt July 04, 2008 @ 09:32:00
On the SaniSoft blog Tarique Sani has posted about (and made available for download) some code sniffs for the CakePHP framework. Some problems arose with some of the naming that the framework uses, but with some "tinkering around"...
[It became] apparent that I had to have my own set of Cake sniffs to manage this but a separate standard just for this seemed an over kill and the simplicity of code made it kind of fun to add more standards which I liked but were in different set of sniffs.
You can grab the whole list of sniffs from their downloads. They implemented them as a pre-commit hook on their SVN server even so that developers could not violate the coding standards when they submit their code.
voice your opinion now!
sanisoft sniff pear package phpcodesniffer svn commit hook cakephp
Community News: TestFest 2008
by Chris Cornutt March 13, 2008 @ 11:15:43
Resulting from a conversation among developers at this year's PHP Quebec 2008 conference, a new event has been created to help test PHP against as many different configurations as it can be - TestFest.
The TestFest is an event that aims at improving the code coverage of the test suite for the PHP language itself. As part of this event local UG are invited to join the TestFest. All it takes is a local organizer to spear head the event and to get others involved in writing phpt tests. The submissions will then be reviewed by members of php.net before getting included in the official test suite.
The even will be announced sometime in March and its hope is to get as many people in the community involved to improve the language. There'll also be a raffle to give away 10 of the stuffed elePHPants as well as, for the ones who are "test worthy" and seem able to write up good tests on their own - commit CVS access to php.net as well as an official php.net account.
For more details on the event, check out this page on the (new) PHP.net wiki.
voice your opinion now!
test language usergroup elephpant commit cvs contest
Michael Kimsal's Blog: Continued sad state of PHP development
by Chris Cornutt December 27, 2007 @ 10:25:00
Michael Kimsal has posted some more thoughts on what he calls the "sad state of PHP development" pointing out some of the practices of the PHP group surrounding the development of the language.
Every few months there's a release, whether large or small, which introduces new features and bug fixes. However, with every release also comes fears of tiny, sometimes undocumented, changes that break existing code, and often for no solid reason other than someone with commit access decided they liked the 'new' way better than the old way.
He points out a specific example, get_object_vars and how its return values were changed in an earlier release as well as the update to glob made recently to change its return types.
In his opinion:
No changes should be made to the PHP core without an issue being opened, either in the 'bug' tracker or some other issues tracker.
Be sure to check out the comments for other great opinions on the topic.
voice your opinion now!
development language state sad change commit development language state sad change commit
|
Community Events
Don't see your event here? Let us know!
|