I had a little browse through it a few days ago. I couldn't figure out (in less than 10 minutes, that is) how to add my own rules to it, but once it's set up you can just use a CLI command like 'php-codesniffer <coding_standards> <file[s]>' to check one or more files for errors. Many popular text editors have an easy way to run such a command immediately after saving, which would give a ZF coder immediate feedback on standards violations. All that is needed is for someone to implement the coding standards in CodeSniffer (maybe ask the package author).
regards, Peter --- Nick Lo <[EMAIL PROTECTED]> wrote: > Your mention of coding standards reminded me of PHP_Codesniffer: > > "Introduction > PHP_CodeSniffer is a PHP5 script that tokenises and "sniffs" PHP code > to detect violations of a defined set of coding standards. It is an > essential development tool that ensures that your code remains clean > and consistent. It can even help prevent some common semantic errors > made by developers. > > A coding standard, in PHP_CodeSniffer, is a collection of sniff > files. Each sniff file checks one part of the coding standard only. > Multiple coding standards can be used within PHP_CodeSniffer, so that > the one installation can be used across multiple projects." > > http://matrix.squiz.net/developer/tools/php_cs > > I wondered at the time if this would be a useful thing for ZF ...a > collection of ZF "sniff" files to automate coding standard checks. > Personally I've no experience with it but I'd be interested to hear > if anyone has actually used it. > > Nick > > > > As we are approaching 0.2, this might be a good time to revisit the > > various changes to the ZF Coding Standard *draft* version in the > > wiki, in order to help produce a version for release along with the > > other docbook documentation. We also have the beginnings of a > > separate "best practices" section in our "Getting Started" wiki > > page, but those practices are more abstract and thus more > > subjective in nature. > > > > http://framework.zend.com/wiki/x/PQ > > > > Cheers, > > Gavin > > > > > > ____________________________________________________ On Yahoo!7 Photos: Unlimited free storage keep all your photos in one place! http://au.photos.yahoo.com
