-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Théo David
committed
Dec 27, 2021
1 parent
86996b1
commit f90d2bd
Showing
1 changed file
with
19 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
## **PHPCS :** | ||
|
||
pour lancer le code sniffer avec le rule set de wordpress : | ||
|
||
pour voir les ruleset existants : | ||
phpcs -i | ||
phpcs --config-show | ||
|
||
dans vendor/bin : | ||
git clone https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards.git wpcs | ||
git checkout master dans wpcs | ||
phpcs --config-set installed_paths wpcs | ||
phpcs --config-set default_standard WordPress | ||
phpcbf ../../class (ou le dossier qu’on veut) | ||
|
||
pour récupérer celui de dolibarr : | ||
copier dev/setup/codesniffer dans vendor/bin/wpcs | ||
|
||
phpcbf ../../class (ou le dossier qu’on veut) |