Skip to content

Commit

Permalink
[PHPCS] add: readme file
Browse files Browse the repository at this point in the history
  • 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.
19 changes: 19 additions & 0 deletions workflow/README.md
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)

0 comments on commit f90d2bd

Please sign in to comment.