News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Christian Weiske:
PHP_CodeSniffer notify-send report
August 15, 2012 @ 09:54:07

In a new post to his site Christian Weiske shares an update he contributed to the PHP_CodeSniffer functionality to make working with and checking the validity of local PHP code easier - a notifier for PHP_CodeSniffer using the "notify-send" commonly installed in most Linux distributions.

I use emacs as IDE, and wanted to have direct feedback about the validity of my .php files when writing them. The most easy way was to add a save hook that runs PHP_CodeSniffer - but the results should be displayed in a nice, unobtrusive way. phpcs has multiple reporting modes - xml, checkstyle, csv etc. - but nothing for the desktop. I thought that notify-send would be the right fit since it is able to display pretty popup messages without getting in the way.

He also includes the details on his original objective - including it in a "on save" hook as well as providing it in a keystroke shortcut, making checking his code even easier.

0 comments voice your opinion now!
codesniffer notifysend popup emacs desktop


blog comments powered by Disqus

Similar Posts

DeveloperTutorials: Desktop Application Development with PHP-GTK

Project: CodeSniffer for PSR's (PSR-0, PSR-1 & PSR-2)

Christian Weiske: PHP_CodeSniffer: notify-send report

Christian Weiske's Blog: How to integrate PHP_CodeSniffer with Git repositories?

PHP-GTK Community Site: Extending GtkMenu class for Popup menu dialog


Community Events





Don't see your event here?
Let us know!


interview series laravel symfony framework language version community tool list voicesoftheelephpant introduction composer conference library artisanfiles opinion release security podcast

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework