diff --git a/composer.json b/composer.json index 612ba79..599a131 100644 --- a/composer.json +++ b/composer.json @@ -20,9 +20,10 @@ }, "require": { "php": ">=5.6", + "phpmd/phpmd": "^2.6", "phpro/grumphp": "0.*", - "squizlabs/php_codesniffer": "2.* | 3.*", "pluswerk/grumphp-bom-task": "4.*", - "pluswerk/grumphp-xliff-task": "2.*" + "pluswerk/grumphp-xliff-task": "2.*", + "squizlabs/php_codesniffer": "2.* | 3.*" } } diff --git a/grumphp.yml b/grumphp.yml index b0d419a..9996354 100644 --- a/grumphp.yml +++ b/grumphp.yml @@ -25,7 +25,7 @@ parameters: - "DebuggerUtility" triggered_by: [php,js,html] metadata: - blocking: false #show only warnings + blocking: false #show only as warnings git_commit_message: matchers: - /(\[(!!!|WIP)]|)(\[(BUGFIX|FEATURE|TASK|CLEANUP|SECURITY)]|Merge (in|branch '.+' into)) .+/ @@ -46,6 +46,12 @@ parameters: plus_bom_fixer: metadata: priority: 1 + phpmd: + exclude: [] + ruleset: ['./vendor/pluswerk/grumphp-config/phpmd-config.xml'] + triggered_by: ['php'] + metadata: + blocking: false #show only as warnings extensions: - PLUS\GrumPHPBomTask\ExtensionLoader - PLUS\GrumPHPXliffTask\ExtensionLoader diff --git a/phpmd-config.xml b/phpmd-config.xml new file mode 100755 index 0000000..04a747e --- /dev/null +++ b/phpmd-config.xml @@ -0,0 +1,86 @@ + + + + Pluswerk phpmd Ruleset + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +