-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from Sweetchuck/update-readme
Update README.md
- Loading branch information
Showing
2 changed files
with
34 additions
and
30 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
<?php | ||
|
||
use Robo\Tasks; | ||
use Sweetchuck\Robo\PhpMessDetector\PhpmdTaskLoader; | ||
|
||
class RoboFile extends Tasks | ||
{ | ||
use PhpmdTaskLoader; | ||
|
||
public function phpmd() | ||
{ | ||
return $this | ||
->taskPhpmdLintFiles() | ||
->setPaths(['src/', 'tests/']) | ||
->setExcludePaths(['src/foo.php']) | ||
->setReportFormat('text') | ||
->setRuleSetFileNames(['path/to/custom.xml']); | ||
} | ||
} | ||
``` |