Please use the Apache issue tracking system for new NetBeans issues ( !!
Bug 172543 - Support for PHP_CodeSniffer
Support for PHP_CodeSniffer
Product: php
Classification: Unclassified
Component: Project
All All
: P3 with 5 votes (vote)
: 7.4
Assigned To: Tomas Mysik
Depends on:
  Show dependency treegraph
Reported: 2009-09-18 08:30 UTC by martinse
Modified: 2013-09-05 05:05 UTC (History)
3 users (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description martinse 2009-09-18 08:30:09 UTC
PHP_CodeSniffer tokenises PHP, JavaScript and CSS files and detects violations of a defined set of coding standards.
Comment 1 ingoreinhart 2009-10-25 22:38:42 UTC
try this plugin:
Comment 2 Filip Zamboj 2010-09-15 12:36:42 UTC
batch reassigning
Comment 3 sinnerou 2011-06-26 15:45:07 UTC
This feature would be a game changer for me.  I bounce between IDE's because the plugins that maintain php tools integrations such as codesniffer/phpdepend are generally unstable and end up not being maintained.   The codesniffer plugin mentioned in the comments does not appear to work with 7.0.
Comment 4 bingalls 2012-02-08 20:56:07 UTC
I once used the plugin. Today,'s site seems down.
Frankly, phpMDnb is a better plugin:

A further feature request, is for a formatting theme, that matches, say, the PEAR style. All this is lost, when you reformat your code, unless you spend time customizing Netbeans.

Even nicer would be, if Netbeans could syncronize on ruleset.xml.
Comment 5 Ondrej Brejla 2012-02-09 09:26:18 UTC
You started to implementing this feature into NetBeans? I don't think so. Reverting status.
Comment 6 lordnelson 2013-09-05 05:01:06 UTC
I have been trying Netbeans 7.4 which CodeSniffer support. I have two things that bug me a bit about the current state:

- check is not on-the-fly

CodeSniffer should be integrated into "Hints" (or similar) so that style violations are detected on the fly and no manual inspection is necessary. I think this would help a lot to make Netbeans up to par with other IDEs

- it should be possible to specify not just a global Codesniffer standard but also an .xml file directly (--standard cli option)

If I can help with anything here, please let me know...
Comment 7 Tomas Mysik 2013-09-05 05:05:27 UTC
@lordnelson: Please, report new separate issues (one issue for one problem).


By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo