Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow requesting a custom report using the report name or FQN
This allows for external standards to provide portable custom reports while installed in an arbitrary directory. * The external standard has to make sure it includes an `<autoload>` directive in the ruleset and sort out the loading of the custom report classes through a `spl_autoload_register()`-ed autoloader. * The name of the custom report class can be provided either on the command line using `--report=...` or via the ruleset using `<arg name="report" value=".."/>`. * The name of the custom report class can be either the Fully Qualified report class name òr just the class name. - The FQN does not have to be prefixed with an `\`, but things will work just fine if it is. - If just the class name is provided, PHPCS will try to find the report in any of the namespaces as registered by the installed standards. - If the report class is not found in any of these, a `DeepExitException` will be thrown. Fixes 1942
- Loading branch information