[development] PHP checkstyle

Victor Kane 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
PHPEclipse.

Of course, the main objective should be http://drupal.org/coding-standards

Victor Kane
http://awebfactory.com.ar
http://projectflowandtracker.com


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
>> http://awebfactory.com.ar
>> http://projectflowandtracker.com
>>
>>
>>
>>
>> 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
>>> this
>>> 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/
>>>
>>> Thanks
>>>
>>> Dipen
>>>
>>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.drupal.org/pipermail/development/attachments/20090323/31a583d2/attachment-0001.htm>


More information about the development mailing list