Hello,
First, thanks for the tool!
I have added it to my development stack, and use it against Drupal contrib modules that I maintain.
Is there a way to ignore a specific line with a comment? Like PHPStan, PHPCS, etc. do.
And is there a way to ignore numbers in keyed array for specific keys?
Because in Drupal, forms are declared with arrays and I think it would be an overburden to have to declare a constant for each weight or size of every element of each form.
Example of form https://git.drupalcode.org/project/qwantsearch/-/blob/8.x-1.x/src/Form/Settings.php#L124
Also, there are still procedural parts in Drupal, such as for declaring custom tables https://git.drupalcode.org/project/i18n_sso/-/blob/8.x-1.x/i18n_sso.install#L40. Ok we can create an interface and call it in the procedural parts.
So would it be possible to have a new option to have a way to ignore array keys:
Thanks for any reply.
Best regards,
Hello,
First, thanks for the tool!
I have added it to my development stack, and use it against Drupal contrib modules that I maintain.
Is there a way to ignore a specific line with a comment? Like PHPStan, PHPCS, etc. do.
And is there a way to ignore numbers in keyed array for specific keys?
Because in Drupal, forms are declared with arrays and I think it would be an overburden to have to declare a constant for each weight or size of every element of each form.
Example of form https://git.drupalcode.org/project/qwantsearch/-/blob/8.x-1.x/src/Form/Settings.php#L124
Also, there are still procedural parts in Drupal, such as for declaring custom tables https://git.drupalcode.org/project/i18n_sso/-/blob/8.x-1.x/i18n_sso.install#L40. Ok we can create an interface and call it in the procedural parts.
So would it be possible to have a new option to have a way to ignore array keys:
Thanks for any reply.
Best regards,