Inspired by https://github.com/phpmd/phpmd/issues/137 using http://phpmd.org/documentation/creating-a-ruleset.html 3