reddit / emacs

phpcs flycheck custom code standards file not working?

girvain ยท 2022-06-02 18:30
Trying to get my emacs rig to use a custom code standards file but I'm having issues with the path. I can get around it a bit with this hacky thing, (defun setup-flycheck-php-project-path () (setq flycheck-php-phpcs-executable (concat (projectile-project-root) "vendor/bin/phpcs") flycheck-phpcs-standard (concat (projectile-project-root) "sniffs.xml")))) ​ but there's still a problem after executing this as the sniffs.xml file points to other files from the project root and setting the project paths like above seems to still break it. Anyone got around this sort of thing before?