Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
This project is not covered by Drupal’s security advisory policy.
Project has moved to Drupal Code Sniffer
There we will join forces to enhance and extend the PHP Codesniffer standard for Drupal.
Integration into Eclipse is still possible by using Eclipse PTI (Php Tools Integration).
This project aims to provide a drupal coding standards validator embedded in the Eclipse IDE.
Initial post which triggered this project: http://drupal.org/node/897116Requirements
Installation
- Install Eclipse
- Install PTI Plugin
- Configure PTI:
- Open Eclipse preferences -> PHP Tools -> PHP Codesniffer
- Add a new "CodeSniffer Standard" - choose this library
- Activate the library by checking the checkbox next to its name.
- Make sure the Standard Tab Widht configuration is set to 0. Otherwise you won't get notified about evil tabs in the code.
Usage
Use the PHP Tools entry in the context menu (right click) in the navigator or hit "Validate" within the context menu (right click) of a file.
Recommendations
- Disable the autorun of validators to save performance.
- Configure the "CodeSniffer Standard" to be use per project.
Known Issues
- Incomplete code validation. It's likely that the Coder module has a better coverage of the coding standards.
- Documentation tag just rarely supported - there are many missing / disabled "sniffs"
- PTI seems to have an issue with Eclipse Indigo
Project information
- Unsupported
Not supported (i.e. abandoned), and no longer being developed. Learn more about dealing with unsupported (abandoned) projects - Obsolete
Use of this project is deprecated. - Created by das-peter on , updated
- This project is not covered by the security advisory policy.
Use at your own risk! It may have publicly disclosed vulnerabilities.
Releases
7.x-1.0-alpha1
released 16 September 2011