Guard::PHPMD automatically runs PHP Mess Detector when watched files are modified.
Patrik Henningsson
gem "guard-phpmd", "~> 0.0.2"