diff --git a/doc/tasks/phpmd.md b/doc/tasks/phpmd.md index 3ea6e2a0..9e139abb 100644 --- a/doc/tasks/phpmd.md +++ b/doc/tasks/phpmd.md @@ -47,7 +47,7 @@ This is a list of patterns that will be ignored by phpmd. With this option you c *Default: text* This sets the output [renderer](https://phpmd.org/documentation/#renderers) of phpmd. -Available formats: ansi, text. +Available formats: text, ansi, xml, html, json, gitlab, github. **ruleset** diff --git a/src/Task/PhpMd.php b/src/Task/PhpMd.php index 1aeccdaa..7d664d2a 100644 --- a/src/Task/PhpMd.php +++ b/src/Task/PhpMd.php @@ -32,7 +32,7 @@ public static function getConfigurableOptions(): ConfigOptionsResolver $resolver->addAllowedTypes('whitelist_patterns', ['array']); $resolver->addAllowedTypes('exclude', ['array']); $resolver->addAllowedTypes('report_format', ['string']); - $resolver->addAllowedValues('report_format', ['text', 'ansi']); + $resolver->addAllowedValues('report_format', ['text', 'ansi', 'xml', 'html', 'json', 'gitlab', 'github']); $resolver->addAllowedTypes('ruleset', ['array']); $resolver->addAllowedTypes('triggered_by', ['array']);