Description
PHPantom currently has no way of providing custom standard or any other argument to formatting tools. It tries to decide on everything itself, looks for phpcs.xml but never allows user to customize that behavior.
Use case
In the company I currently work in we have phpcs ruleset stored at quality/php/PhpCodingStandard/ruleset.xml. I am able to feed this config to phpcs with phpcs.standard option. However I cannot feed it to phpcbf since there is no such option in formatting section.
Proposed solution
Add configuration options like formatting.standard, formatting.phpcbf.standard or let user provide any arguments with formatting.args.
I am only starting to research this project and I do not really know how if my request fits its philosophy. With my little experience in Rust I am willing to make a PR but I would appreciate some directions whether I could make breaking changes in configuration, whether I could modify ResolvedTool structure, etc.
Alternatives considered
Currently I have formatting disabled in PHPantom and use phpcbf VSCode extension for code formatting.
Code example
Description
PHPantom currently has no way of providing custom standard or any other argument to formatting tools. It tries to decide on everything itself, looks for phpcs.xml but never allows user to customize that behavior.
Use case
In the company I currently work in we have phpcs ruleset stored at
quality/php/PhpCodingStandard/ruleset.xml. I am able to feed this config to phpcs withphpcs.standardoption. However I cannot feed it to phpcbf since there is no such option in formatting section.Proposed solution
Add configuration options like
formatting.standard,formatting.phpcbf.standardor let user provide any arguments withformatting.args.I am only starting to research this project and I do not really know how if my request fits its philosophy. With my little experience in Rust I am willing to make a PR but I would appreciate some directions whether I could make breaking changes in configuration, whether I could modify
ResolvedToolstructure, etc.Alternatives considered
Currently I have formatting disabled in PHPantom and use phpcbf VSCode extension for code formatting.
Code example