ZF Coding Standards Code Sniffer?

classic Classic list List threaded Threaded
10 messages Options
Reply | Threaded
Open this post in threaded view
|

ZF Coding Standards Code Sniffer?

keith Pope-4
Hi,

Anyone know if there is a ZF code sniffer standard available anywhere
on the interwebs??

Thx

Keith

--
------------
http://www.thepopeisdead.com
Reply | Threaded
Open this post in threaded view
|

Getting warning when using ZendX_JQuery view helper

guyht
Hi,

I am getting debug warnings when using ZendX_JQuery as well as custom decorators and filters..... it appears that this has something to do with the Autoloader.  It looks like, when I am calling $this->view->someHelper() from my controller, it looks for and attempts to open the helper in in ZendX_JQuery helper folder as well as my custom decorators and filters folder. It is very possible that I have messed up my autoloader so I present it below:

Thanks for any help

Regards

Guy


// Setup autoloaders
       
       $autoloader = Zend_Loader_Autoloader::getInstance();
                                     
        $defaultAutoloader = new Zend_Application_Module_Autoloader(
        array(
            'namespace' => 'Default_',
            'basePath'  => dirname(__FILE__).'/default'
        )
        );
        $defaultAutoloader->addResourceType('validate','/validators','Validate_');
        $defaultAutoloader->addResourceType('filter', '/filters', 'Filter_');
        $defaultAutoloader->addResourceType('acl', '/acl', 'Acl_');
         
       
        $helpAutoloader = new Zend_Application_Module_Autoloader(
        array(
            'namespace' => 'Help_',
            'basePath'  => dirname(__FILE__).'/help'
        )
        );
               
       
       
       
        $accountAutoloader = new Zend_Application_Module_Autoloader(
        array(
        'namespace' => 'Account_',
        'basePath' => dirname(__FILE__).'/account'));
       
       
        $autoloader->setAutoloaders(array($defaultAutoloader, $helpAutoloader, $accountAutoloader));
       
        return $autoloader;


-----------------------  

I init ZendX_JQuery as follows:

    $view = new Zend_View();
                $view->addHelperPath('ZendX/JQuery/View/Helper/', 'ZendX_JQuery_View_Helper');

                $viewRenderer = new Zend_Controller_Action_Helper_ViewRenderer();
                $viewRenderer->setView($view);
                Zend_Controller_Action_HelperBroker::addHelper($viewRenderer);
                return $view;


---------------

And the filters and decorators (in my Form.php class that extends Zend_Form):

 $this->addElementPrefixPath('Default_Form_Decorator', APPLICATION_PATH .'/default/forms/decorators', 'decorator');
        $this->addElementPrefixPath('Default_Filter', APPLICATION_PATH . '/default/filters', 'filter');
               


------------------

This is the error:


Debug Warning: /usr/local/zend/share/ZendFramework/library/Zend/Loader.php line 165 - fopen(ZendX/JQuery/View/Helper/Doctype.php) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: No such file or directory
Debug Warning: /usr/local/zend/share/ZendFramework/library/Zend/Loader.php line 165 - fopen(ZendX/JQuery/View/Helper/HeadTitle.php) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: No such file or directory
Debug Warning: /usr/local/zend/share/ZendFramework/library/Zend/Loader.php line 165 - fopen(ZendX/JQuery/View/Helper/HeadMeta.php) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: No such file or directory
Debug Warning: /usr/local/zend/share/ZendFramework/library/Zend/Loader.php line 165 - fopen(ZendX/JQuery/View/Helper/HeadScript.php) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: No such file or directory
Debug Warning: /usr/local/zend/share/ZendFramework/library/Zend/Loader.php line 165 - fopen(/Users/Guy/Zend/workspaces/DefaultWorkspace7/Default/application/default/views/helpers/HeadScript.php) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: No such file or directory
Debug Warning: /usr/local/zend/share/ZendFramework/library/Zend/Loader.php line 165 - fopen(/Users/Guy/Zend/workspaces/DefaultWorkspace7/Default/application/default/forms/decorators/ViewHelper.php) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: No such file or directory
Debug Warning: /usr/local/zend/share/ZendFramework/library/Zend/Loader.php line 165 - fopen(/Users/Guy/Zend/workspaces/DefaultWorkspace7/Default/application/default/forms/decorators/Description.php) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: No such file or directory
Debug Warning: /usr/local/zend/share/ZendFramework/library/Zend/Loader.php line 165 - fopen(/Users/Guy/Zend/workspaces/DefaultWorkspace7/Default/application/default/forms/decorators/HtmlTag.php) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: No such file or directory
Debug Warning: /usr/local/zend/share/ZendFramework/library/Zend/Loader.php line 165 - fopen(/Users/Guy/Zend/workspaces/DefaultWorkspace7/Default/application/default/forms/decorators/Label.php) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: No such file or directory
Debug Warning: /usr/local/zend/share/ZendFramework/library/Zend/Loader.php line 165 - fopen(ZendX/JQuery/View/Helper/FormText.php) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: No such file or directory
Debug Warning: /usr/local/zend/share/ZendFramework/library/Zend/Loader.php line 165 - fopen(/Users/Guy/Zend/workspaces/DefaultWorkspace7/Default/application/default/views/helpers/FormText.php) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: No such file or directory
Debug Warning: /usr/local/zend/share/ZendFramework/library/Zend/Loader.php line 165 - fopen(ZendX/JQuery/View/Helper/FormLabel.php) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: No such file or directory
Debug Warning: /usr/local/zend/share/ZendFramework/library/Zend/Loader.php line 165 - fopen(/Users/Guy/Zend/workspaces/DefaultWorkspace7/Default/application/default/views/helpers/FormLabel.php) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: No such file or directory
Debug Warning: /usr/local/zend/share/ZendFramework/library/Zend/Loader.php line 165 - fopen(ZendX/JQuery/View/Helper/FormTextarea.php) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: No such file or directory
Debug Warning: /usr/local/zend/share/ZendFramework/library/Zend/Loader.php line 165 - fopen(/Users/Guy/Zend/workspaces/DefaultWorkspace7/Default/application/default/views/helpers/FormTextarea.php) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: No such file or directory
Debug Warning: /usr/local/zend/share/ZendFramework/library/Zend/Loader.php line 165 - fopen(/Users/Guy/Zend/workspaces/DefaultWorkspace7/Default/application/default/forms/decorators/Captcha.php) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: No such file or directory
Debug Warning: /usr/local/zend/share/ZendFramework/library/Zend/Loader.php line 165 - fopen(/Users/Guy/Zend/workspaces/DefaultWorkspace7/Default/application/default/forms/decorators/Captcha/Word.php) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: No such file or directory
Debug Warning: /usr/local/zend/share/ZendFramework/library/Zend/Loader.php line 165 - fopen(ZendX/JQuery/View/Helper/FormHidden.php) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: No such file or directory
Debug Warning: /usr/local/zend/share/ZendFramework/library/Zend/Loader.php line 165 - fopen(/Users/Guy/Zend/workspaces/DefaultWorkspace7/Default/application/default/views/helpers/FormHidden.php) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: No such file or directory
Debug Warning: /usr/local/zend/share/ZendFramework/library/Zend/Loader.php line 165 - fopen(/Users/Guy/Zend/workspaces/DefaultWorkspace7/Default/application/default/forms/decorators/Tooltip.php) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: No such file or directory
Debug Warning: /usr/local/zend/share/ZendFramework/library/Zend/Loader.php line 165 - fopen(/Users/Guy/Zend/workspaces/DefaultWorkspace7/Default/application/default/forms/decorators/DtDdWrapper.php) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: No such file or directory
Debug Warning: /usr/local/zend/share/ZendFramework/library/Zend/Loader.php line 165 - fopen(ZendX/JQuery/View/Helper/FormSubmit.php) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: No such file or directory
Debug Warning: /usr/local/zend/share/ZendFramework/library/Zend/Loader.php line 165 - fopen(/Users/Guy/Zend/workspaces/DefaultWorkspace7/Default/application/default/views/helpers/FormSubmit.php) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: No such file or directory
Debug Warning: /usr/local/zend/share/ZendFramework/library/Zend/Loader.php line 165 - fopen(ZendX/JQuery/View/Helper/Form.php) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: No such file or directory
Debug Warning: /usr/local/zend/share/ZendFramework/library/Zend/Loader.php line 165 - fopen(/Users/Guy/Zend/workspaces/DefaultWorkspace7/Default/application/default/views/helpers/Form.php) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: No such file or directory
Debug Warning: /usr/local/zend/share/ZendFramework/library/Zend/Loader.php line 165 - fopen(/Users/Guy/Zend/workspaces/DefaultWorkspace7/Default/application/default/forms/decorators/Errors.php) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: No such file or directory
Debug Warning: /usr/local/zend/share/ZendFramework/library/Zend/Loader.php line 165 - fopen(ZendX/JQuery/View/Helper/HeadLink.php) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: No such file or directory
Debug Warning: /usr/local/zend/share/ZendFramework/library/Zend/Loader.php line 165 - fopen(/Users/Guy/Zend/workspaces/DefaultWorkspace7/Default/application/default/views/helpers/HeadLink.php) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: No such file or directory
Debug Warning: /usr/local/zend/share/ZendFramework/library/Zend/Loader.php line 165 - fopen(ZendX/JQuery/View/Helper/HeadStyle.php) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: No such file or directory
Debug Warning: /usr/local/zend/share/ZendFramework/library/Zend/Loader.php line 165 - fopen(/Users/Guy/Zend/workspaces/DefaultWorkspace7/Default/application/default/views/helpers/HeadStyle.php) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: No such file or directory
Debug Warning: /usr/local/zend/share/ZendFramework/library/Zend/Loader.php line 165 - fopen(ZendX/JQuery/View/Helper/Layout.php) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: No such file or directory
Debug Warning: /usr/local/zend/share/ZendFramework/library/Zend/Loader.php line 165 - fopen(/Users/Guy/Zend/workspaces/DefaultWorkspace7/Default/application/default/views/helpers/Layout.php) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: No such file or directory

Reply | Threaded
Open this post in threaded view
|

Re: Getting warning when using ZendX_JQuery view helper

keith Pope-4
You have this code in your main bootstrap file?

I think setAutoloaders will delete the default ones you may want to
push them instead.

Also you seem to be setting up your module autoloaders all in one
place, you can have these automatically setup using the module
resource. Also from 1.10 you can use the appnamespace in the app.ini
to setup the default autoloader, after that you just need to add your
extra resources.

Also for ZendX in the app.ini you need to add:

autoloadernamespaces[] = "Zend_"
autoloadernamespaces[] = "ZendX_"

You can see an example of module autoloading here (using 1.10/trunk):
http://code.google.com/p/zendframeworkstorefront/

Thx

Keith

2010/1/4 Guy Halford-Thompson <[hidden email]>:

> Hi,
>
> I am getting debug warnings when using ZendX_JQuery as well as custom decorators and filters..... it appears that this has something to do with the Autoloader.  It looks like, when I am calling $this->view->someHelper() from my controller, it looks for and attempts to open the helper in in ZendX_JQuery helper folder as well as my custom decorators and filters folder. It is very possible that I have messed up my autoloader so I present it below:
>
> Thanks for any help
>
> Regards
>
> Guy
>
>
> // Setup autoloaders
>
>       $autoloader = Zend_Loader_Autoloader::getInstance();
>
>        $defaultAutoloader = new Zend_Application_Module_Autoloader(
>                                                array(
>                                                'namespace' => 'Default_',
>                                                'basePath'  => dirname(__FILE__).'/default'
>                                                        )
>                                                );
>        $defaultAutoloader->addResourceType('validate','/validators','Validate_');
>        $defaultAutoloader->addResourceType('filter', '/filters', 'Filter_');
>        $defaultAutoloader->addResourceType('acl', '/acl', 'Acl_');
>
>
>        $helpAutoloader = new Zend_Application_Module_Autoloader(
>                                                array(
>                                                'namespace' => 'Help_',
>                                                'basePath'  => dirname(__FILE__).'/help'
>                                                        )
>                                                );
>
>
>
>
>        $accountAutoloader = new Zend_Application_Module_Autoloader(
>                                        array(
>                                                        'namespace' => 'Account_',
>                                                        'basePath' => dirname(__FILE__).'/account'));
>
>
>        $autoloader->setAutoloaders(array($defaultAutoloader, $helpAutoloader, $accountAutoloader));
>
>        return $autoloader;
>
>
> -----------------------
>
> I init ZendX_JQuery as follows:
>
>        $view = new Zend_View();
>                $view->addHelperPath('ZendX/JQuery/View/Helper/', 'ZendX_JQuery_View_Helper');
>
>                $viewRenderer = new Zend_Controller_Action_Helper_ViewRenderer();
>                $viewRenderer->setView($view);
>                Zend_Controller_Action_HelperBroker::addHelper($viewRenderer);
>                return $view;
>
>
> ---------------
>
> And the filters and decorators (in my Form.php class that extends Zend_Form):
>
>  $this->addElementPrefixPath('Default_Form_Decorator', APPLICATION_PATH .'/default/forms/decorators', 'decorator');
>        $this->addElementPrefixPath('Default_Filter', APPLICATION_PATH . '/default/filters', 'filter');
>
>
>
> ------------------
>
> This is the error:
>
>
> Debug Warning: /usr/local/zend/share/ZendFramework/library/Zend/Loader.php line 165 - fopen(ZendX/JQuery/View/Helper/Doctype.php) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: No such file or directory
> Debug Warning: /usr/local/zend/share/ZendFramework/library/Zend/Loader.php line 165 - fopen(ZendX/JQuery/View/Helper/HeadTitle.php) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: No such file or directory
> Debug Warning: /usr/local/zend/share/ZendFramework/library/Zend/Loader.php line 165 - fopen(ZendX/JQuery/View/Helper/HeadMeta.php) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: No such file or directory
> Debug Warning: /usr/local/zend/share/ZendFramework/library/Zend/Loader.php line 165 - fopen(ZendX/JQuery/View/Helper/HeadScript.php) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: No such file or directory
> Debug Warning: /usr/local/zend/share/ZendFramework/library/Zend/Loader.php line 165 - fopen(/Users/Guy/Zend/workspaces/DefaultWorkspace7/Default/application/default/views/helpers/HeadScript.php) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: No such file or directory
> Debug Warning: /usr/local/zend/share/ZendFramework/library/Zend/Loader.php line 165 - fopen(/Users/Guy/Zend/workspaces/DefaultWorkspace7/Default/application/default/forms/decorators/ViewHelper.php) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: No such file or directory
> Debug Warning: /usr/local/zend/share/ZendFramework/library/Zend/Loader.php line 165 - fopen(/Users/Guy/Zend/workspaces/DefaultWorkspace7/Default/application/default/forms/decorators/Description.php) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: No such file or directory
> Debug Warning: /usr/local/zend/share/ZendFramework/library/Zend/Loader.php line 165 - fopen(/Users/Guy/Zend/workspaces/DefaultWorkspace7/Default/application/default/forms/decorators/HtmlTag.php) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: No such file or directory
> Debug Warning: /usr/local/zend/share/ZendFramework/library/Zend/Loader.php line 165 - fopen(/Users/Guy/Zend/workspaces/DefaultWorkspace7/Default/application/default/forms/decorators/Label.php) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: No such file or directory
> Debug Warning: /usr/local/zend/share/ZendFramework/library/Zend/Loader.php line 165 - fopen(ZendX/JQuery/View/Helper/FormText.php) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: No such file or directory
> Debug Warning: /usr/local/zend/share/ZendFramework/library/Zend/Loader.php line 165 - fopen(/Users/Guy/Zend/workspaces/DefaultWorkspace7/Default/application/default/views/helpers/FormText.php) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: No such file or directory
> Debug Warning: /usr/local/zend/share/ZendFramework/library/Zend/Loader.php line 165 - fopen(ZendX/JQuery/View/Helper/FormLabel.php) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: No such file or directory
> Debug Warning: /usr/local/zend/share/ZendFramework/library/Zend/Loader.php line 165 - fopen(/Users/Guy/Zend/workspaces/DefaultWorkspace7/Default/application/default/views/helpers/FormLabel.php) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: No such file or directory
> Debug Warning: /usr/local/zend/share/ZendFramework/library/Zend/Loader.php line 165 - fopen(ZendX/JQuery/View/Helper/FormTextarea.php) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: No such file or directory
> Debug Warning: /usr/local/zend/share/ZendFramework/library/Zend/Loader.php line 165 - fopen(/Users/Guy/Zend/workspaces/DefaultWorkspace7/Default/application/default/views/helpers/FormTextarea.php) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: No such file or directory
> Debug Warning: /usr/local/zend/share/ZendFramework/library/Zend/Loader.php line 165 - fopen(/Users/Guy/Zend/workspaces/DefaultWorkspace7/Default/application/default/forms/decorators/Captcha.php) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: No such file or directory
> Debug Warning: /usr/local/zend/share/ZendFramework/library/Zend/Loader.php line 165 - fopen(/Users/Guy/Zend/workspaces/DefaultWorkspace7/Default/application/default/forms/decorators/Captcha/Word.php) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: No such file or directory
> Debug Warning: /usr/local/zend/share/ZendFramework/library/Zend/Loader.php line 165 - fopen(ZendX/JQuery/View/Helper/FormHidden.php) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: No such file or directory
> Debug Warning: /usr/local/zend/share/ZendFramework/library/Zend/Loader.php line 165 - fopen(/Users/Guy/Zend/workspaces/DefaultWorkspace7/Default/application/default/views/helpers/FormHidden.php) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: No such file or directory
> Debug Warning: /usr/local/zend/share/ZendFramework/library/Zend/Loader.php line 165 - fopen(/Users/Guy/Zend/workspaces/DefaultWorkspace7/Default/application/default/forms/decorators/Tooltip.php) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: No such file or directory
> Debug Warning: /usr/local/zend/share/ZendFramework/library/Zend/Loader.php line 165 - fopen(/Users/Guy/Zend/workspaces/DefaultWorkspace7/Default/application/default/forms/decorators/DtDdWrapper.php) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: No such file or directory
> Debug Warning: /usr/local/zend/share/ZendFramework/library/Zend/Loader.php line 165 - fopen(ZendX/JQuery/View/Helper/FormSubmit.php) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: No such file or directory
> Debug Warning: /usr/local/zend/share/ZendFramework/library/Zend/Loader.php line 165 - fopen(/Users/Guy/Zend/workspaces/DefaultWorkspace7/Default/application/default/views/helpers/FormSubmit.php) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: No such file or directory
> Debug Warning: /usr/local/zend/share/ZendFramework/library/Zend/Loader.php line 165 - fopen(ZendX/JQuery/View/Helper/Form.php) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: No such file or directory
> Debug Warning: /usr/local/zend/share/ZendFramework/library/Zend/Loader.php line 165 - fopen(/Users/Guy/Zend/workspaces/DefaultWorkspace7/Default/application/default/views/helpers/Form.php) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: No such file or directory
> Debug Warning: /usr/local/zend/share/ZendFramework/library/Zend/Loader.php line 165 - fopen(/Users/Guy/Zend/workspaces/DefaultWorkspace7/Default/application/default/forms/decorators/Errors.php) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: No such file or directory
> Debug Warning: /usr/local/zend/share/ZendFramework/library/Zend/Loader.php line 165 - fopen(ZendX/JQuery/View/Helper/HeadLink.php) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: No such file or directory
> Debug Warning: /usr/local/zend/share/ZendFramework/library/Zend/Loader.php line 165 - fopen(/Users/Guy/Zend/workspaces/DefaultWorkspace7/Default/application/default/views/helpers/HeadLink.php) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: No such file or directory
> Debug Warning: /usr/local/zend/share/ZendFramework/library/Zend/Loader.php line 165 - fopen(ZendX/JQuery/View/Helper/HeadStyle.php) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: No such file or directory
> Debug Warning: /usr/local/zend/share/ZendFramework/library/Zend/Loader.php line 165 - fopen(/Users/Guy/Zend/workspaces/DefaultWorkspace7/Default/application/default/views/helpers/HeadStyle.php) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: No such file or directory
> Debug Warning: /usr/local/zend/share/ZendFramework/library/Zend/Loader.php line 165 - fopen(ZendX/JQuery/View/Helper/Layout.php) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: No such file or directory
> Debug Warning: /usr/local/zend/share/ZendFramework/library/Zend/Loader.php line 165 - fopen(/Users/Guy/Zend/workspaces/DefaultWorkspace7/Default/application/default/views/helpers/Layout.php) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: No such file or directory
>
>



--
------------
http://www.thepopeisdead.com
Reply | Threaded
Open this post in threaded view
|

Re: ZF Coding Standards Code Sniffer?

weierophinney
Administrator
In reply to this post by keith Pope-4
-- keith Pope <[hidden email]> wrote
(on Monday, 04 January 2010, 09:55 AM +0000):
> Anyone know if there is a ZF code sniffer standard available anywhere
> on the interwebs??

Not one that implements the actual published standards. I know a few
people have discussed creating one in recent months, but I haven't seen
anything concrete yet.

--
Matthew Weier O'Phinney
Project Lead            | [hidden email]
Zend Framework          | http://framework.zend.com/
Reply | Threaded
Open this post in threaded view
|

Re: ZF Coding Standards Code Sniffer?

Marco2
There is one at

http://pear.php.net/package/PHP_CodeSniffer

Not sure how up to date it is though.

Marco
Reply | Threaded
Open this post in threaded view
|

Re: ZF Coding Standards Code Sniffer?

Diego Henrique Oliveira
In reply to this post by weierophinney


From: Matthew Weier O'Phinney <[hidden email]>
To: [hidden email]
Sent: Mon, January 4, 2010 12:35:08 PM
Subject: Re: [fw-general] ZF Coding Standards Code Sniffer?

-- keith Pope <[hidden email]> wrote
(on Monday, 04 January 2010, 09:55 AM +0000):
> Anyone know if there is a ZF code sniffer standard available anywhere
> on the interwebs??

Not one that implements the actual published standards. I know a few
people have discussed creating one in recent months, but I haven't seen
anything concrete yet.

--
Matthew Weier O'Phinney
Project Lead            | [hidden email]
Zend Framework          | http://framework.zend.com/

Reply | Threaded
Open this post in threaded view
|

Re: ZF Coding Standards Code Sniffer?

weierophinney
Administrator
-- Diego Henrique Oliveira <[hidden email]> wrote
(on Monday, 04 January 2010, 07:18 AM -0800):
> check this: http://pear.php.net/package/PHP_CodeSniffer

As I noted previously, the ZF sniffs do not accurately follow our
published coding standards.

> ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
> From: Matthew Weier O'Phinney <[hidden email]>
> To: [hidden email]
> Sent: Mon, January 4, 2010 12:35:08 PM
> Subject: Re: [fw-general] ZF Coding Standards Code Sniffer?
>
> -- keith Pope <[hidden email]> wrote
> (on Monday, 04 January 2010, 09:55 AM +0000):
> > Anyone know if there is a ZF code sniffer standard available anywhere
> > on the interwebs??
>
> Not one that implements the actual published standards. I know a few
> people have discussed creating one in recent months, but I haven't seen
> anything concrete yet.

--
Matthew Weier O'Phinney
Project Lead            | [hidden email]
Zend Framework          | http://framework.zend.com/
Reply | Threaded
Open this post in threaded view
|

Re: ZF Coding Standards Code Sniffer?

till
On Mon, Jan 4, 2010 at 4:39 PM, Matthew Weier O'Phinney
<[hidden email]> wrote:
> -- Diego Henrique Oliveira <[hidden email]> wrote
> (on Monday, 04 January 2010, 07:18 AM -0800):
>> check this: http://pear.php.net/package/PHP_CodeSniffer
>
> As I noted previously, the ZF sniffs do not accurately follow our
> published coding standards.

Just open a bug. ;-) Greg usually fixes it. Or maybe someone would
like to contribute to it right away. I'm sure he's not turning
anyone's offer to help down.

I remember this stalled when someone checked in the codesniffer code
in the Zend repo and stripped all of the license and authorship info.

Till
Reply | Threaded
Open this post in threaded view
|

Re: ZF Coding Standards Code Sniffer?

keith Pope-4
2010/1/4 till <[hidden email]>:

> On Mon, Jan 4, 2010 at 4:39 PM, Matthew Weier O'Phinney
> <[hidden email]> wrote:
>> -- Diego Henrique Oliveira <[hidden email]> wrote
>> (on Monday, 04 January 2010, 07:18 AM -0800):
>>> check this: http://pear.php.net/package/PHP_CodeSniffer
>>
>> As I noted previously, the ZF sniffs do not accurately follow our
>> published coding standards.
>
> Just open a bug. ;-) Greg usually fixes it. Or maybe someone would
> like to contribute to it right away. I'm sure he's not turning
> anyone's offer to help down.
>
> I remember this stalled when someone checked in the codesniffer code
> in the Zend repo and stripped all of the license and authorship info.
>
> Till
>

I see Thomas did a load of work on it, so I just grabbed that and made
it fit in with my standards.

Thx Thomas :)

I think Greg might be waiting for the ZF standard to be final from
reading his comments.

--
------------
http://www.thepopeisdead.com
Reply | Threaded
Open this post in threaded view
|

Re: ZF Coding Standards Code Sniffer?

Thomas Weidner

----- Original Message -----
From: "keith Pope" <[hidden email]>
To: "till" <[hidden email]>
Cc: <[hidden email]>
Sent: Monday, January 04, 2010 6:38 PM
Subject: Re: [fw-general] ZF Coding Standards Code Sniffer?


> 2010/1/4 till <[hidden email]>:
>> On Mon, Jan 4, 2010 at 4:39 PM, Matthew Weier O'Phinney
>> <[hidden email]> wrote:
>>> -- Diego Henrique Oliveira <[hidden email]> wrote
>>> (on Monday, 04 January 2010, 07:18 AM -0800):
>>>> check this: http://pear.php.net/package/PHP_CodeSniffer
>>>
>>> As I noted previously, the ZF sniffs do not accurately follow our
>>> published coding standards.
>>
>> Just open a bug. ;-) Greg usually fixes it. Or maybe someone would
>> like to contribute to it right away. I'm sure he's not turning
>> anyone's offer to help down.
>>
>> I remember this stalled when someone checked in the codesniffer code
>> in the Zend repo and stripped all of the license and authorship info.
>>
>> Till
>>
>
> I see Thomas did a load of work on it, so I just grabbed that and made
> it fit in with my standards.
>
> Thx Thomas :)

Always a pleasure

>
> I think Greg might be waiting for the ZF standard to be final from
> reading his comments.

Greetings
Thomas Weidner, I18N Team Leader, Zend Framework
http://www.thomasweidner.com