Skip to content

Sublime Text 2/3 plugin that checks PHP files for "smelly" code such as die, var_dump, print_r etc.

Notifications You must be signed in to change notification settings

linuslundahl/PHP-Devel-Smeller

Repository files navigation

PHP Devel Smeller for Sublime Text 2/3

[Flattr this git repo](https://flattr.com/submit/auto?user_id=linuslundahl&url=https://github.com/linuslundahl/PHP-Devel-Smeller&title=PHP Devel Smeller for Sublime Text 2&language=&tags=github&category=software)

Sublime Text 2 plugin that checks PHP files for "smelly" code such as die;, var_dump();, print_r(); etc.

This is NOT a syntax checker, use SublimeLinter for that. This is just a check for left behind development code that you usually don't want to commit to a production enviroment.

Installation

$ git clone [email protected]:linuslundahl/PHP-Devel-Smeller.git ~/Library/Application Support/Sublime Text 2/Packages

Setup

By default the plugin uses the built in Error Message in Sublime for smelly notifications, but you can also use Notification Center for less obtrusive notifications, this requires Terminal Notifier.

$ [sudo] gem install terminal-notifier

Then add:

{
  "use_notification_center": 1
}

to [..]/Packages/User/PhpDevelSmeller.sublime-settings to enable it.

About

Sublime Text 2/3 plugin that checks PHP files for "smelly" code such as die, var_dump, print_r etc.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages