2011-08-28 16:37:07 +02:00
|
|
|
README (English)
|
|
|
|
|
--------------------------------
|
|
|
|
|
|
2024-01-21 13:37:53 +01:00
|
|
|
This directory contains ruleset files to use to develop Dolibarr ERP & CRM.
|
2011-09-14 23:29:04 +02:00
|
|
|
|
2014-12-05 17:44:47 +01:00
|
|
|
To install/upgrade phpcs:
|
|
|
|
|
> sudo pear upgrade PHP_CodeSniffer
|
|
|
|
|
|
2020-04-25 19:13:20 +02:00
|
|
|
To run phpcs:
|
|
|
|
|
> cd dolibarrgitrepo
|
|
|
|
|
> phpcs --standard=dev/setup/codesniffer/ruleset.xml --extensions=php --parallel=8 .
|
|
|
|
|
|
2021-05-12 23:08:52 +02:00
|
|
|
To fix with phpcbf:
|
|
|
|
|
> cd dolibarrgitrepo
|
|
|
|
|
> phpcbf --standard=dev/setup/codesniffer/ruleset.xml --extensions=php --parallel=8 .
|
|
|
|
|
|
|
|
|
|
|
2014-12-05 17:44:47 +01:00
|
|
|
Note with Eclipse: You must setup the PTI plugin of Eclipse into PHPCodeSniffer menu with:
|
2011-09-14 23:29:04 +02:00
|
|
|
* tab value to 4
|
2024-01-21 13:37:53 +01:00
|
|
|
* path of code sniffer standard to dev/codesniffer
|