The documentation needs updating, as we need to register two paths within PHP_CodeSniffer:
The path to our package's standards
vendor/wp-coding-standards/wpcs within our repo
Without these, we may run into Fatal error: Uncaught exception 'PHP_CodeSniffer_Exception' with message 'Referenced sniff "WordPress-Extra" does not exist' errors, which is :-1:
These values can be concatenated with a comma, but in the future it might make sense to automatically register these in a post-install/post-update command (though we'd want to ensure we're not overwriting existing config options blindly, which is the only reason we're not doing that now).
The documentation needs updating, as we need to register two paths within PHP_CodeSniffer:
vendor/wp-coding-standards/wpcs
within our repoWithout these, we may run into
Fatal error: Uncaught exception 'PHP_CodeSniffer_Exception' with message 'Referenced sniff "WordPress-Extra" does not exist'
errors, which is :-1:These values can be concatenated with a comma, but in the future it might make sense to automatically register these in a
post-install
/post-update
command (though we'd want to ensure we're not overwriting existing config options blindly, which is the only reason we're not doing that now).