Skip to content

Commit

Permalink
#1 : Makefile with checkstyle
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicolas Bastien committed Jul 10, 2016
1 parent 10c79c6 commit 82dbf03
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/vendor/
composer.lock
17 changes: 17 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
ENV?=dev

# ====================
# Qualimetry rules

## Run all qualimetry tasks
qualimetry: lint checkstyle

## Qualimetry : lint
lint:
find -L src -name '*.php' -print0 | xargs -0 -n 1 -P 4 php -l

## Qualimetry : checkstyle
cs: checkstyle
checkstyle:
vendor/bin/phpcs --extensions=php -n --standard=PSR2 --report=full src

3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
"php": "^5.4||^7.0"
},
"require-dev": {
"phpunit/phpunit": "^5.0||^4.0"
"phpunit/phpunit": "^5.0||^4.0",
"squizlabs/php_codesniffer": "^2.5"
},
"autoload": {
"psr-4": { "NBN\\LoadBalancer\\": "src/" }
Expand Down

0 comments on commit 82dbf03

Please sign in to comment.