X

An Oracle blog about NetBeans for PHP

  • News
    April 20, 2010

CodeSniffer plugin for NetBeans PHP Editor

Guest Author
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.

Join the discussion

Comments ( 9 )
  • Tom Tuesday, April 20, 2010

    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.


  • Tom Tuesday, April 20, 2010

    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.


  • Arnaud ZIEBA Tuesday, April 20, 2010

    So which version of NetBeans do you recommend ?


  • Jeffrey Rubinoff Tuesday, April 20, 2010

    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.


  • Tom Wednesday, April 21, 2010

    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.


  • nabeel Wednesday, April 28, 2010

    this is very gooooood


  • AngryCoder Monday, May 17, 2010

    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?


  • Jens Thursday, January 13, 2011

    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/


  • guest Thursday, May 26, 2011
    Installing both will for cause the ClassNotFoundException mentioned must above and keep the IDE from loading page further plug-ins.
Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.