How to set CodeIgniter 4 coding standard in a phpcs.xml file ? |
Hello,
I'm working on IonAuth for CI4 : https://github.com/bvrignaud/CodeIgniter...uth/tree/4 I'm trying to set travis jobs. I have problems with the CodeIgniter coding standard implementation (https://github.com/bcit-ci/CodeIgniter4-Standard). If I run on command line : Code: $ vendor/bin/phpcs --standard=vendor/codeigniter4/codeigniter4-standard/CodeIgniter4 . But if I set a phpcs.xml.dist with : Code: <rule ref="vendor/codeigniter4/codeigniter4-standard/CodeIgniter4/" /> Code: $ vendor/bin/phpcs I have this error : PHP Fatal error: Class 'CodeIgniter4\Sniffs\PHP\ForbiddenFunctionsSniff' not found in /home/benoit/MesProjets/Lab/ci4/src/CodeIgniter-Ion-Auth/vendor/codeigniter4/codeigniter4-standard/CodeIgniter4/Sniffs/PHP/DiscouragedFunctionsSniff.php on line 24 Any ideas ? Thanks |
Messages In This Thread |
How to set CodeIgniter 4 coding standard in a phpcs.xml file ? - by bvrignaud - 10-24-2018, 02:05 AM
RE: How to set CodeIgniter 4 coding standard in a phpcs.xml file ? - by louisl - 11-11-2018, 01:18 PM
RE: How to set CodeIgniter 4 coding standard in a phpcs.xml file ? - by ciadmin - 11-11-2018, 02:25 PM
RE: How to set CodeIgniter 4 coding standard in a phpcs.xml file ? - by louisl - 11-11-2018, 02:36 PM
RE: How to set CodeIgniter 4 coding standard in a phpcs.xml file ? - by ciadmin - 11-11-2018, 02:49 PM
RE: How to set CodeIgniter 4 coding standard in a phpcs.xml file ? - by bvrignaud - 12-19-2018, 06:29 AM
RE: How to set CodeIgniter 4 coding standard in a phpcs.xml file ? - by puschie - 12-21-2018, 01:02 AM
|