Skip to content
This repository has been archived by the owner on Mar 5, 2024. It is now read-only.

Commit

Permalink
Merge pull request #14 from elbgoods/ft-app-phpmnd
Browse files Browse the repository at this point in the history
add phpmnd
  • Loading branch information
Gummibeer authored Feb 4, 2020
2 parents 0bfc22e + 1f1b0e4 commit f20d199
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 2 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,3 +98,13 @@ vendor/bin/php-insights-test
#### Configuration

If you think that a rule should be adjusted/ignored open a PR in [this repo](https://github.com/elbgoods/ci-test-tools) to discuss it.

### PHPMND

* **tool:** https://github.com/povils/phpmnd

#### Usage

```bash
vendor/bin/php-mn-test
```
5 changes: 5 additions & 0 deletions bin/php-mn-test
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env bash

set -e

vendor/bin/phpmnd ${1:-./app} --non-zero-exit-on-violation
6 changes: 4 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
"phpunit/phpunit": "^8.0",
"tightenco/tlint": "^3.0.7",
"illuminate/support": "^6.0",
"nunomaduro/phpinsights": "^1.12"
"nunomaduro/phpinsights": "^1.12",
"povils/phpmnd": "^2.2"
},
"require-dev": {
"laravel/framework": "^6.0",
Expand All @@ -43,6 +44,7 @@
"bin/php-cs-test",
"bin/php-md-test",
"bin/php-tlint-test",
"bin/php-insights-test"
"bin/php-insights-test",
"bin/php-mn-test"
]
}

0 comments on commit f20d199

Please sign in to comment.