Monday, 9 March 2009

PHP_CodeSniffer 1.2.0RC1 released

I was just looking at the download stats for PHP_CodeSniffer version 1.2.0alpha1. Normally, my alpha releases get a very small number of downloads due to most users not allowing alpha state packages to be installed via PEAR (fair enough). But the 1.2.0 alpha got over 300 downloads. That's a great figure and a few bugs were fixed from that testing, but there is a very good reason why there were so many downloads - I released it nearly 4 months ago.

To be honest, besides fixing the odd bug, I haven't been working on PHP_CodeSniffer lately. I'm very busy working on the MySource Mini and our coding standard seems to be nearing completion, so there is less work to be done there as well. But 1.2.0 is a good release with some great reporting improvements, so it's about time I released a beta version.

This release candidate is essentially a bug-fix only release, but please test it if you can so I can push it stable as soon as possible and start working on new features again.

You can view the full changelog and download the release on the package download page.

1 comments:

Himanshu said...

Hey Greg,

The hook script still can't get rid of directory sniffing. Whenever I try to add a directory it gives me the error

[root@localhost CodeSniffer]# svn commit -m "done"
Adding temp
svn: Commit failed (details follow):
svn: Commit blocked by pre-commit hook (exit code 1) with output:
svnlook: Path 'temp' is not a file
PHP Fatal error: Uncaught PHP_CodeSniffer_Exception: Could not auto-detect line endings from content in /usr/local/php5/lib/php/PHP/CodeSniffer/File.php on line 435
#0 /usr/local/php5/lib/php/PHP/CodeSniffer/File.php(435): PHP_CodeSniffer_File::detectLineEndings('temp/', '')
#1 /usr/local/php5/lib/php/PHP/CodeSniffer/File.php(355): PHP_CodeSniffer_File->_parse('')
#2 /usr/local/php5/lib/php/PHP/CodeSniffer.php(734): PHP_CodeSniffer_File->start('')
#3 /usr/local/php5/lib/php/PHP/scripts/phpcs-svn-pre-commit(152): PHP_CodeSniffer->processFile('temp/?', '')
#4 /usr/local/php5/lib/php/PHP/scripts/phpcs-svn-pre-commit(191): PHP_CodeSniffer_SVN_Hook->process()
#5 {main}
thrown in /usr/local/php5/lib/php/PHP/CodeSniffer/File.php on line 508