Bug 172543 - Support for PHP_CodeSniffer
Support for PHP_CodeSniffer
Status: RESOLVED FIXED
Product: php
Classification: Unclassified
Component: Project
7.0
All All
: P3 with 5 votes (vote)
: 7.4
Assigned To: Tomas Mysik
issues@php
http://pear.php.net/package/PHP_CodeS...
:
Depends on:
Blocks:
  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:
Issue Type: ENHANCEMENT
:


Attachments

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
martinse,
try this plugin: http://www.whitewashing.de/blog/articles/119
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 whitewashing.de plugin. Today, whitewashing.de's site seems down.
Frankly, phpMDnb is a better plugin:
http://sourceforge.net/projects/phpmdnb/files/

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).

Thanks.


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