Hi Markus,

I am not very familiar with codesniffer, but from what I make up from
it's project page it is somewhat similar to the w3 xhtml, css, etc
validation tools. Correct me if I am wrong.

What is often the case with these tools is that they should be used as
guidelines more than strict rules. They usually point out mistakes you
made unconsciously, but sometimes you might make an informed decision
to not follow guidelines because of another requirement you need
satisfied.

In these cases it is up to you whether you decide to change the
'admin_edit' method's name into something else and thus losing a lot
of out of the box functions from Cake, or you stick with the CakePHP
conventions and live with the warning that you got.

Again this is if codesniffer is a code validation like tool and does
not have some other functionality that I am not aware of.

Another thought strikes me, the project page (http://pear.php.net/
package/PHP_CodeSniffer/redirected) says that codesniffer is used for
making sure that programmers create clean and semantically correct
code. admin_edit is a clean and semantically correct name for a
function in the cakephp world, so I would be able to live with using
it in my Cakephp applications.

Greetings,
Achilleas

On Apr 30, 1:34 pm, Braindead <[email protected]> wrote:
> Hi all
>
> is there anybody out there who uses PHP CodeSniffer with his Cake app?
> I tried PHP CodeSniffer for the first time and used the build in
> coding standards to sniff my code. Actually I get warnings because of
> Cake conventions.
>
> Method name "PostsController::admin_edit" is not on camel caps format
>
> Just to mention one warning. So can anybody lead me the way to use PHP
> CodeSniffer with CakePHP?
>
> Cheers,
> Markus
>
> Check out the new CakePHP Questions sitehttp://cakeqs.organd help others with 
> their CakePHP related questions.
>
> You received this message because you are subscribed to the Google Groups 
> "CakePHP" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected] For more options, visit this group 
> athttp://groups.google.com/group/cake-php?hl=en

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to