Skip to content

Commit 39c3424

Browse files
committed
Adjust contribution docs regarding new PHPCS setup
1 parent 4b77955 commit 39c3424

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

CONTRIBUTING.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,17 @@ This project comes with a phpcs configuration (`phpcs.xml`) you can use to check
1414
Run phpcs in the project root directory:
1515

1616
```
17-
phpcs --extensions=php --standard=./phpcs.xml -n -p .
17+
./vendor/bin/phpcs ./
1818
```
1919

20-
Before you can run phpcs, you need to install PHP Codesniffer and WordPress coding standards like so:
20+
You need to install the plugin's development dependencies before you can run the PHPCS checks. A regular
2121

2222
```
23-
composer create-project wp-coding-standards/wpcs:dev-master --no-dev $HOME/wpcs
23+
composer install
2424
```
2525

26-
Or read the official installation instructions here:
26+
should install all the required packages.
27+
28+
You can read the official WPCS installation instructions here:
2729

2830
https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards

0 commit comments

Comments
 (0)