Skip to content

Commit

Permalink
Instructions to install pmd on README
Browse files Browse the repository at this point in the history
  • Loading branch information
eiditakahashi committed Apr 19, 2017
1 parent cbc4376 commit dc4f5ba
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Dangerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ end
def checkPmdInstalled
installed = system("which pmd")
if !installed
message("`pmd` not found. Install `pmd` to use Copy Paste Detector.")
message("`pmd` not found. Install `pmd` to use Copy Paste Detector. https://github.com/indigotech/danger/tree/master#pmdcopy-paste-detector")
else
checkCpd(@cpd_opts)
end
Expand Down
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,17 @@ gem "danger", "4.2.1"
danger.import_dangerfile(github: "indigotech/danger", branch: "2.0.0") # replace version by latest on "Releases" section
```

### PMD/Copy Paste Detector

If your project is running on Travis CI, you will need to add `pmd` installation in your `.travis.yml`
```
...
install:
- bundle install
- brew install pmd
...
```

## Usage Locally

### Setup
Expand Down

0 comments on commit dc4f5ba

Please sign in to comment.