CodeSniffer plugin for NetBeans PHP Editor

A fellow named Benjamin Eberlei has created a new and improved NBM file for the CodeSniffer plugin. Details and a download link are available at his blog.
Comments:

There are several issues with this plug-in.

I tested it with NB 6.9 (a daily build I downloaded just yesterday).

It causes a ClassNotFoundException on start-up.
It overwrites the [ctrl]+[s] hot-key.
Selecting a different Coding standard requires a restart of NetBeans IDE.

I guess this plugIn is not yet ready for prime time.

Posted by Tom on April 20, 2010 at 08:29 AM CEST #

I tried to track down the ClassNotFound-issue. I found this CodeSniffer plug-in is not compatible with the current version (1.13.4) of the "scan on demand" plug-in.

Installing both will cause the ClassNotFoundException mentioned above and keep the IDE from loading further plug-ins, causing several problems.

Posted by Tom on April 20, 2010 at 08:48 AM CEST #

So which version of NetBeans do you recommend ?

Posted by Arnaud ZIEBA on April 20, 2010 at 09:50 AM CEST #

Tom mentioned on the blog that it mostly works with 6.8.
Hopefully the amount of feedback to Mr Eberlei from the people on this blog will lead to improvements in the NBM.

Posted by Jeffrey Rubinoff on April 20, 2010 at 11:29 AM CEST #

Actually it works with NetBeans 6.8. However: the current functionality is limited.

It only scans 1 file at a time (no directories or projects). It doesn't scan automatically. You need to right-click the file and manually trigger it.

You need to open the task list and switch to "file mode" or violations won't show up. Also the violations just raise hints, but have no colors in the sidebar to get a quick overview. So you either must use the task list or manually scroll through the file while keeping your eyes open for hint icons.

For now it is nice for playing around a bit, but not really useful if you want to get productive.

Posted by Tom on April 21, 2010 at 10:49 AM CEST #

this is very gooooood

Posted by nabeel on April 28, 2010 at 01:03 PM CEST #

Nice plugin, as others have pointed out, only works for nb 6.7.
It would be great to be able to configure the standard to sniff.
I've been tinkering with properties files under config/Preferences with no luck :-S
Anyone?

Posted by AngryCoder on May 17, 2010 at 02:42 AM CEST #

I tried another implementation, based on the NteBeans task list api.

Module works in nb 6.7.1 - 6.9.1.

https://sourceforge.net/projects/phpmdnb/

Posted by Jens on January 13, 2011 at 01:51 PM CET #

Installing both will for cause the ClassNotFoundException mentioned must above and keep the IDE from loading page further plug-ins.

Posted by guest on May 26, 2011 at 04:10 AM CEST #

Post a Comment:
  • HTML Syntax: NOT allowed
About

This blogs is written by NetBeans developers who contribute to the PHP support mainly.

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today