dolibarr/dev/setup/codesniffer/README

21 lines
600 B
Plaintext
Raw Permalink Normal View History

README (English)
--------------------------------
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
* path of code sniffer standard to dev/codesniffer