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

fix: make phpmd more permissive #39

Closed zeshanziya closed 4 months ago

zeshanziya commented 4 months ago
  1. Excluded the CouplingBetweenObjects rule due to potential errors when utilizing multiple dependency injections.
  2. Added exceptions for $id and $op variable names since the default minimum length for short variable names is 3.
  3. Increased the maximum variable length to 30 characters, as the default is 20. This adjustment accommodates longer, more descriptive variable names, enhancing code readability.