mirror of
https://github.com/jlengrand/openapi-generator.git
synced 2026-03-10 08:31:23 +00:00
add back phplint tool: e75b115
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user