Bug #16054 [Opn->Ver]: phpcs-svn-pre-commit not showing any errors
| From: | gsherwood at squiz dot net | Date: | Wed, 25 Mar 2009 04:31:47 +0000 |
| Subject: | Bug #16054 [Opn->Ver]: phpcs-svn-pre-commit not showing any errors | ||
| References: | 1 | Groups: | php.pear.bugs |
| Request: | Send a blank email to pear-bugs+get-258@lists.php.net to get a copy of this message | ||
Edit report at http://pear.php.net/bugs/bug.php?id=16054&edit=1
ID: 16054
Updated by: gsherwood@squiz.net
Reported By: str at strgt dot cjb dot net
Summary: phpcs-svn-pre-commit not showing any errors
-Status: Open
+Status: Verified
Type: Bug
Package: PHP_CodeSniffer
Operating System: Ubuntu
Package Version: 1.2.0RC1
PHP Version: 5.2.9
-Assigned To:
+Assigned To: squiz
Roadmap Versions:
New Comment:
-Status: Open
+Status: Verified
-Assigned To:
+Assigned To: squiz
Previous Comments:
------------------------------------------------------------------------
[2009-03-23 22:25:22] str
Description:
------------
I'm testing the precomit hook as it is shown on the documentation. It
force it to exit, becase I never get any error. The php file I'm testing
is a very simple one, but if violates a lot of rules.
Test script:
---------------
<?php
class test {
public function test(){
echo 'hola mundo';
}
}
$test = new test();
$test->test();
/usr/bin/scripts/phpcs-svn-pre-commit --standard=Squiz --tab-width=4
"$REPOS" -t "$TXN" 1>&2 || exit 1
exit 3
Expected result:
----------------
exit 1
Actual result:
--------------
exit3
------------------------------------------------------------------------
--
Edit this bug report at http://pear.php.net/bugs/bug.php?id=16054&edit=1