From a0e4b05f8c33a186af36372aed0a8bca45bdee61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C3=A1vid=20Andor?= Date: Sun, 7 Jan 2018 20:03:50 +0100 Subject: [PATCH] Update README.md --- .circleci/config.yml | 12 +++++----- README.md | 52 ++++++++++++++++++++++++-------------------- 2 files changed, 34 insertions(+), 30 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 395d1b1..b56ddc1 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -47,12 +47,12 @@ _custom: <<: *job_defaults steps: - 'checkout' -# - -# run: -# <<: *run_upgrade_git -# - -# run: -# <<: *run_install_php_extensions + - + run: + <<: *run_upgrade_git + - + run: + <<: *run_install_php_extensions - run: <<: *run_install_composer diff --git a/README.md b/README.md index 975466b..d64fc16 100644 --- a/README.md +++ b/README.md @@ -1,24 +1,28 @@ -# Project template to create a new Robo task - -[![Build Status](https://travis-ci.org/Sweetchuck/robo-template-task.svg?branch=master)](https://travis-ci.org/Sweetchuck/robo-template-task) -[![codecov](https://codecov.io/gh/Sweetchuck/robo-template-task/branch/master/graph/badge.svg)](https://codecov.io/gh/Sweetchuck/robo-template-task) - -@todo - - -Requirements ------------- - -@todo - - -Usage ------ - -1. Run `cd some-where` (Something like "~/Documents/Composer/vendor") -1. Run `composer create-project --stability=dev sweetchuck/robo-template-task my-vendor/robo-my-action` - - The `my-vendor` and the `robo-my-action` are custom names, so you can choice whatever you want, - but the project name (robo-my-action) should be prefixed with `robo-`. -1. Answer the questions in the terminal. -1. Run `cd my-vendor/robo-my-action` +# Robo task wrapper for PHPMD (PHP Mess Detector) + +[![CircleCI](https://circleci.com/gh/Sweetchuck/robo-phpmd.svg?style=svg)](https://circleci.com/gh/Sweetchuck/robo-phpmd) +[![codecov](https://codecov.io/gh/Sweetchuck/robo-phpmd/branch/master/graph/badge.svg)](https://codecov.io/gh/Sweetchuck/robo-phpmd) + +## Usage + +```php +taskPhpmdLintFiles() + ->setPaths(['src/', 'tests/']) + ->setExcludePaths(['src/foo.php']) + ->setReportFormat('text') + ->setRuleSetFileNames(['path/to/custom.xml']); + } +} +```