axelerant / drupal-quality-checker

Pre-commit code quality checker for Drupal based projects.
https://packagist.org/packages/axelerant/drupal-quality-checker
12 stars 9 forks source link

Exclude "\Drupal\Core\Render\Element\Checkboxes" class of PHPMD StaticAccess rule #16

Closed bthirietcap closed 3 years ago

bthirietcap commented 3 years ago

Hi,

It is not possible to instantiate or use dependency injection to use Checkboxes methods (e.g. Checkboxes::detectEmptyCheckboxes()) So it is a good idea to add an exclusion for this class in the phpmd.xml.dist file

bthirietcap commented 3 years ago

https://github.com/axelerant/drupal-quality-checker/pull/17

hussainweb commented 3 years ago

Thank you for this. I'm sure there are more like this. If you get a chance, please create more PR's.