[development] PHP checkstyle
victorkane at gmail.com
Mon Mar 23 10:38:17 UTC 2009
Google on "beautify php eclipse", it seems there are several, one built into
Of course, the main objective should be http://drupal.org/coding-standards
On Mon, Mar 23, 2009 at 7:31 AM, Dipen <dipench at gmail.com> wrote:
> Thanks for that, but I want it for code readability where in I can set
> things like "eclipse should show a warning if I am using camelcase for
> variables", "If there are more than 100 characters in 1 line of code then it
> should present a warning and auto formatter should fold it two lines" the
> way checkstyle plugin works for java (give proper checkstyle.xml). Syntax
> errors are automatically identified by PDT, I'll look into -l as to what all
> features does it provide. But I want something embedded into my IDE which
> prompts me of style errors and coding standard errors as I make them.
> Thanks again
> On Mon, Mar 23, 2009 at 3:41 PM, Victor Kane <victorkane at gmail.com> wrote:
>> PHP does have its own built in "lint" (like the one we used to use every
>> day with C programs).
>> $ php -l my.module
>> No syntax errors detected in lcph.module
>> See http://www.snakelegs.org/2006/05/18/lint-php/ for article.
>> Victor Kane
>> On Mon, Mar 23, 2009 at 7:02 AM, Dipen <dipench at gmail.com> wrote:
>>> Hi list,
>>> After searching google for 1 hr I am still unable to find an equivalent
>>> for java checkstyle for PHP which would play nice with eclipse. I could find
>>> http://developer.spikesource.com/wiki/index.php?title=Projects:phpcheckstyleNewsand one abandoned project with no releases on sourceforge. Does anyone know
>>> of checkstyle eclipse plugin for PHP (doesnt need to be all featureful).
>>> Also how do you manage this kind of task? Checkstyle eclipse plugin for java
>>> - http://eclipse-cs.sourceforge.net/
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the development