I have a ruleset with some custom sniffs. I have the ruleset in my project directory/repository, but I can't work out how to keep the custom sniffs there.
If I put a relative link into the ruleset:
<rule ref="./MySniffs/foo"/>
then it throws this error:
PHP_CodeSniffer_Exception: Referenced sniff "./MySniffs/foo"
does not exist in C:\path\to\php\php\pear\PHP\CodeSniffer.php
So the relative path is worked out from the CodeSniffer.php file and not from the ruleset.
Is it possible to make the ruleset point to the custom sniff without using absolute paths?
I need to use relative paths because this is a repository with multiple instances.