Skip to content

Commit

Permalink
Merge pull request #1 from Sweetchuck/update-readme
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
Sweetchuck authored Jan 7, 2018
2 parents 1127256 + a0e4b05 commit a2c0e1f
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 30 deletions.
12 changes: 6 additions & 6 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
52 changes: 28 additions & 24 deletions README.md
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']);
}
}
```

0 comments on commit a2c0e1f

Please sign in to comment.