Skip to content
Netbeans PHP Enhancements, such as PHP Code Sniffer Support
Java
Pull request Compare This branch is 2 commits ahead, 12 commits behind beberlei:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
nbproject
src/de/whitewashing/php/cs
test/unit/src/de/whitewashing/php/cs/command
.gitignore
LICENSE
README
arch.xml
build.xml
manifest.mf

README

Netbeans PHP Editor Extensions:
==============================

No Warranty whatsoever for this, it might break your Netbeans ;-)
Only tested with netbeans 6.7, uses APIs that are not in 6.5.
The module automatically scans for the "phpcs" executable inside the enviroment path.

Currently this module has two little features:

1. PHP Coding Standards Support for the Tasks Window
2. Additionall "Show Coding Standards Violations" for Inline Highlighting of Violations

TASK WINDOW
==============

Open up the Tasks Window from "Window - Tasks" or CTRL+6.

To enable the Todo List CS Scanning you have to right click on the Filter Icon
and Select "Edit". Add a New Filter "Coding Standards" and activate only "PHP Coding Standards"
as task group and confirm. Then you have to click the uppermost icon on the left
of the tasks window that enables "Current File Scope".

For performance reasons the PHPCS plugin will only work in this mode, which
means only the coding standard violations of the current file are shown
in the task window.

SHOW CODING VIOLATIONS
======================

Per right click on the Editor window you can select "Show Coding Standard" which
highlights lines with warnings and errors. This highlights disappear when the file
is changed and saved.

CONFIGURE CODING-STANDARD
=========================

In the Advanced/Miscellaneous Tab of the Options Dialog you can chose which
coding standard you want to use and where the PHPCS binary (script) is located.

TODOS
=====

* Add project level Coding Standard Configuration

EXTENDING THIS PLUGIN
=====================

If you git clone this project you have to modify the nbproject/private/platform-private.properties
file and fill it with the following two properties:

    user.properties.file=/home/benny/.netbeans/6.8/build.properties
    nbplatform.default.harness.dir=/home/benny/programs/netbeans-6.8/harness

THANK YOU NOTES
===============

We thank the following individuals for contributing code and knowledge to this project:

Petr Pisl, tprochazka, Alexandre Haguiar
Something went wrong with that request. Please try again.