Gitlab pipelines is great way of getting modules in shape but many modules are out of shape or it's not installed at all. Then after you have everything set up, it's impossible to fix 600+ issues by looking at the log of pipelines. Let's do much of the checks locally by using GrumPHP which would also be ableo to run on the staged code.
== Solution?
Use GrumPHP
Can we make things run in Docker so developers env would not matter?
Something like this could be used to install the dev dependencies of the module with our custom image (not yet published)
docker run -v "$(pwd)":/app php82-custom composer install
== Problem
Gitlab pipelines is great way of getting modules in shape but many modules are out of shape or it's not installed at all. Then after you have everything set up, it's impossible to fix 600+ issues by looking at the log of pipelines. Let's do much of the checks locally by using GrumPHP which would also be ableo to run on the staged code.
== Solution?
Use GrumPHP
Can we make things run in Docker so developers env would not matter? Something like this could be used to install the dev dependencies of the module with our custom image (not yet published)
docker run -v "$(pwd)":/app php82-custom composer install
Executing PHP with Docker seems also to work. Based on this information https://project.pages.drupalcode.org/gitlab_templates/jobs/phpcs/ an example grumphp.yml