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