dolibarr/dev/setup/codesniffer
MDW d72d2583b9
Qual: Update LanguageOfCommentsSniff to avoid PHP7 incompatibility (#39032)
# Qual: Update LanguageOfCommentsSniff to avoid PHP7 incompatibility

Variable length negative lookbehind is not available on older PHP version, used in Travis CI.

Updated the regex to use only negative lookahead.
2026-07-01 16:44:17 +02:00
..
Sniffs/Dolibarr Qual: Update LanguageOfCommentsSniff to avoid PHP7 incompatibility (#39032) 2026-07-01 16:44:17 +02:00
php.ini Clean files 2026-01-07 19:01:54 +01:00
README
ruleset.dtd
ruleset.xml Doc 2026-05-05 10:57:35 +02:00

README (English)
--------------------------------

This directory contains ruleset files to use to develop Dolibarr ERP & CRM.

To install/upgrade phpcs:
> sudo pear upgrade PHP_CodeSniffer

To run phpcs:
> cd dolibarrgitrepo
> phpcs --standard=dev/setup/codesniffer/ruleset.xml --extensions=php --parallel=8 .

To fix with phpcbf:
> cd dolibarrgitrepo
> phpcbf --standard=dev/setup/codesniffer/ruleset.xml --extensions=php --parallel=8 .


Note with Eclipse: You must setup the PTI plugin of Eclipse into PHPCodeSniffer menu with:
* tab value to 4
* path of code sniffer standard to dev/codesniffer