Re: PHP_CodeSniffer warning suggestion for phpdoc @version tag
| From: | Carsten Wiedmann | Date: | Mon, 26 Nov 2007 08:11:50 +0000 |
| Subject: | Re: PHP_CodeSniffer warning suggestion for phpdoc @version tag | ||
| References: | 1 2 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-48596@lists.php.net to get a copy of this message | ||
Greg Sherwood schrieb:
Laurent Laville wrote: for @version tag, because in such condition (CVS $Id:$ tag) we can not do anything ! I think it's fair enough that warnings are not generated for these lines as there is nothing the developer can do to shorten them. I've changed this in PHP_CodeSniffer; currently available in CVS and will be in RC3.Two additional questions. a) What's about the @license tag? Currently I use:
| * @license http://www.freebsd.org/copyright/freebsd-license.html \| FreeBSD License That's exactly 85 chars. But in the manual [1] I'm adviced to use:
| * @license http://www.freebsd.org/copyright/freebsd-license.html \| BSD License (2 Clause) Now I have 92 chars. b) Between the lincense URI and the license name, how many spaces are allowed/necessary? In the manual [1] the examples have 2 spaces. But 1 space seems also ok with phpcs. Regards, Carsten [1] http://pear.php.net/manual/en/standards.header.php#AEN1029