Critiquing PHP-code / PerlCritic for PHP?
Asked Answered
W

2

3

I'm looking for an equivalent of PerlCritic for PHP. PerlCritc is a static source code analyzer that qritiques code and warns about everything from unused variables, to unsafe ways to handle data to almost anything.

Is there such a thing for PHP that could (preferably) be run outside of an IDE, so that source code analysis could be automated?

Worcestershire answered 12/3, 2010 at 12:15 Comment(0)
W
3

Not sure I've ever heard about a PHP tool that would do all that... But a couple of existing QA-related tools, that might help you at least a bit, would be :

Those two will analyse your code, and can be run from the command-line (i.e. outside of an IDE).

Waterfall answered 12/3, 2010 at 12:23 Comment(0)
P
1

See SD PHP CloneDR for a static analysis tool that finds duplicated code (exact and near misses) across large bodies of PHP code.

There are examples of a PHP clone detection run on the Joomla OSS web framework at the site.

Pepi answered 30/3, 2010 at 23:54 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.