add back phplint tool: e75b115

This commit is contained in:
William Cheng
2018-08-30 19:57:22 +08:00
parent 9e45fbb13b
commit f664938d8e
6 changed files with 15 additions and 3 deletions

View File

@@ -34,6 +34,7 @@ This package uses PHPUnit 4.8 for unit testing and PHP Codesniffer to check sour
[Test folder]({{testBasePath}}) contains templates which you can fill with real test assertions.
How to write tests read at [PHPUnit Manual - Chapter 2. Writing Tests for PHPUnit](https://phpunit.de/manual/4.8/en/writing-tests-for-phpunit.html).
How to configure PHP CodeSniffer read at [PHP CodeSniffer Documentation](https://github.com/squizlabs/PHP_CodeSniffer/wiki).
There is [phplint](https://github.com/overtrue/phplint) tool to check php syntax automatically.
Command | Tool | Target
---- | ---- | ----
@@ -41,6 +42,8 @@ Command | Tool | Target
`$ composer run test-apis` | PHPUnit | Apis tests
`$ composer run test-models` | PHPUnit | Models tests
`$ composer run phpcs` | PHP CodeSniffer | All files
`$ composer run phplint` | phplint | All files
{{#generateApiDocs}}
## API Endpoints

View File

@@ -22,6 +22,7 @@
],
"test-apis": "phpunit --testsuite Apis",
"test-models": "phpunit --testsuite Models",
"phpcs": "phpcs ./ --ignore=vendor --warning-severity=0 --standard={{phpcsStandard}}"
"phpcs": "phpcs ./ --ignore=vendor --warning-severity=0 --standard={{phpcsStandard}}",
"phplint": "phplint ./ --exclude=vendor"
}
}

View File

@@ -34,6 +34,7 @@ This package uses PHPUnit 4.8 for unit testing and PHP Codesniffer to check sour
[Test folder](test) contains templates which you can fill with real test assertions.
How to write tests read at [PHPUnit Manual - Chapter 2. Writing Tests for PHPUnit](https://phpunit.de/manual/4.8/en/writing-tests-for-phpunit.html).
How to configure PHP CodeSniffer read at [PHP CodeSniffer Documentation](https://github.com/squizlabs/PHP_CodeSniffer/wiki).
There is [phplint](https://github.com/overtrue/phplint) tool to check php syntax automatically.
Command | Tool | Target
---- | ---- | ----
@@ -41,6 +42,8 @@ Command | Tool | Target
`$ composer run test-apis` | PHPUnit | Apis tests
`$ composer run test-models` | PHPUnit | Models tests
`$ composer run phpcs` | PHP CodeSniffer | All files
`$ composer run phplint` | phplint | All files
## API Endpoints

View File

@@ -22,6 +22,7 @@
],
"test-apis": "phpunit --testsuite Apis",
"test-models": "phpunit --testsuite Models",
"phpcs": "phpcs ./ --ignore=vendor --warning-severity=0 --standard=PSR12"
"phpcs": "phpcs ./ --ignore=vendor --warning-severity=0 --standard=PSR12",
"phplint": "phplint ./ --exclude=vendor"
}
}

View File

@@ -34,6 +34,7 @@ This package uses PHPUnit 4.8 for unit testing and PHP Codesniffer to check sour
[Test folder](test) contains templates which you can fill with real test assertions.
How to write tests read at [PHPUnit Manual - Chapter 2. Writing Tests for PHPUnit](https://phpunit.de/manual/4.8/en/writing-tests-for-phpunit.html).
How to configure PHP CodeSniffer read at [PHP CodeSniffer Documentation](https://github.com/squizlabs/PHP_CodeSniffer/wiki).
There is [phplint](https://github.com/overtrue/phplint) tool to check php syntax automatically.
Command | Tool | Target
---- | ---- | ----
@@ -41,6 +42,8 @@ Command | Tool | Target
`$ composer run test-apis` | PHPUnit | Apis tests
`$ composer run test-models` | PHPUnit | Models tests
`$ composer run phpcs` | PHP CodeSniffer | All files
`$ composer run phplint` | phplint | All files
## API Endpoints

View File

@@ -22,6 +22,7 @@
],
"test-apis": "phpunit --testsuite Apis",
"test-models": "phpunit --testsuite Models",
"phpcs": "phpcs ./ --ignore=vendor --warning-severity=0 --standard=PSR12"
"phpcs": "phpcs ./ --ignore=vendor --warning-severity=0 --standard=PSR12",
"phplint": "phplint ./ --exclude=vendor"
}
}