Skip to content

Commit beb528f

Browse files
committed
Use composer to run lint
1 parent d9ace5d commit beb528f

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ script:
1818
- composer install -o --prefer-dist --no-interaction
1919

2020
# Check project with phps
21-
- ./vendor/bin/phpcs -n -p .
21+
- composer run lint

composer.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,8 @@
1616
"require-dev": {
1717
"dealerdirect/phpcodesniffer-composer-installer": "^0.4.4",
1818
"wp-coding-standards/wpcs": "0.12.0"
19+
},
20+
"scripts": {
21+
"lint": "./vendor/bin/phpcs --standard=./phpcs.xml -n -p ."
1922
}
2023
}

0 commit comments

Comments
 (0)