openeuropa / drupal-site-template

OpenEuropa template for Drupal sites.
European Union Public License 1.2
12 stars 10 forks source link

MULTISITE-23419: Proposed workaround for cli maxlength command issue. #69

Open ghost opened 4 years ago

ghost commented 4 years ago

MULTISITE-23419

Description

Because of the config/ folder that can contain large amounts of yml files, grumphp can generate a command that exceeds the maximum characters allowed in a command. When this happens, phpcs will fail without any report.

Issue explained in more detail here: https://github.com/phpro/grumphp/issues/523

Change log

Commands

To replicate the issue execute the grumphp command on a codebase with a large amount of yml files in the config folder:

./vendor/bin/grumphp run -vvv

This pull request is a simple workaround to lower the number of yml files that will be checked without excluding any files that would have to be checked by the coder package:

https://github.com/pfrenssen/coder/search?q=yml&unscoped_q=yml