mirror of
https://github.com/WordPress/five-for-the-future.git
synced 2025-04-20 18:13:44 +03:00
Tools: Rename lint/format scripts to match newer repos.
This commit is contained in:
parent
f269c2a1ab
commit
61744dcbaa
|
@ -46,9 +46,10 @@ If you are making changes to the plugins, you can run `composer update` at `/wp-
|
||||||
And lastly, you can run PHPCS for both the theme and the plugin at the root `/wp-content/` folder by running `composer install` there once, followed by `composer run phpcs` when you want to code scan.
|
And lastly, you can run PHPCS for both the theme and the plugin at the root `/wp-content/` folder by running `composer install` there once, followed by `composer run phpcs` when you want to code scan.
|
||||||
|
|
||||||
|
|
||||||
* `composer run phpcs` - Lint the entire codebase
|
* `composer run lint` - Lint the entire codebase
|
||||||
* `composer run phpcs -- -a themes/wporg-5ftf/` - Lint a specific folder, interactively
|
* `composer run lint -- -a themes/wporg-5ftf/` - Lint a specific folder, interactively
|
||||||
* `composer run phpcbf` - Fix linter warnings (when possible)
|
* `composer run lint $(pwd)/inc*/ac*` - List file(s) in the current directory without typing the full path
|
||||||
|
* `composer run format` - Fix linter warnings (when possible)
|
||||||
* `composer run test` - Run unit tests
|
* `composer run test` - Run unit tests
|
||||||
* `composer run test:watch` - Run unit tests after each file change.
|
* `composer run test:watch` - Run unit tests after each file change.
|
||||||
|
|
||||||
|
|
|
@ -23,10 +23,10 @@
|
||||||
"spatie/phpunit-watcher": "^1.23"
|
"spatie/phpunit-watcher": "^1.23"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"phpcs": [
|
"lint": [
|
||||||
"phpcs --extensions=php -s -p"
|
"phpcs --extensions=php -s -p"
|
||||||
],
|
],
|
||||||
"phpcbf": [
|
"format": [
|
||||||
"phpcbf -p"
|
"phpcbf -p"
|
||||||
],
|
],
|
||||||
"test" : "phpunit",
|
"test" : "phpunit",
|
||||||
|
|
Loading…
Reference in a new issue