NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Code Analyzer


Joined: 16 Aug 2006
Posts: 13
Reply with quote
Hi.

It would be great if PHPEd had something like Zend's PHP Code Analyzer, which check the code, and give warrnings about possible mistakes :]

Best regards
Jacek
View user's profileFind all posts by wengoshSend private message


Joined: 07 Sep 2006
Posts: 3
Reply with quote
Yes, Code Analyzer like Zend would be a great feature. I second that! Very Happy
View user's profileFind all posts by cubesharkSend private message
Guru master

Joined: 05 Jul 2004
Posts: 659
Location: Belgium
Reply with quote
The Zend CodeAnalyzer is just a separate executable and is easely added as an integration tool.

Just make a new tool the normal way. The type is "Shell".
The commandline would be
ZendCodeAnalyzer.exe @FName@
(ofcourse add the folder)
Then turn on the checkboxes of where you want to have the command appear.

Below options, just check the Redirect Output stream to log window

If you run it you'll get lines like
C:\wwwroot\testfile.php(line 87): Variable 'variable' is never used

It's not as flashy as it is in Zend Studio, but it serves the purpose nevertheless.
Only cool thing would be that you could make the IDE see that the first part of the line
was a file "coordinate" and allow jumping to it by double clicking. Anyway, nothing that
a Control+G can't solve. I've already asked for this functionality in the past but it seems
not so easy to do.

Hope that helps.
View user's profileFind all posts by BlizzSend private messageVisit poster's website


Joined: 16 Aug 2006
Posts: 13
Reply with quote
thx Smile It's some kind of solution :] It's enoght for me now. But still you have to download Zend, to use it, so I'm still voting for that feature Smile

Wengosh :]
View user's profileFind all posts by wengoshSend private message
Code Analyzer
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic