Created
June 11, 2012 04:10
-
-
Save yewton/2908486 to your computer and use it in GitHub Desktop.
myphpmd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
use strict; | |
my $source = $ARGV[0]; | |
my $type = $ARGV[1]; | |
my $rules = $ARGV[2]; | |
my $result = `phpmd ${source} ${type} ${rules}`; | |
$result =~ s/^\s+//g; | |
$result =~ s/(:[0-9]+)/$1:/g; | |
print $result; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment