Problem/Motivation
The new Gitlab CI pipeline reports a bunch of eslint/phpcs/phpstan issues. We should fix these to make the pipeline completely green.
Proposed resolution
Fix all code style related issues.
Issue fork mailchimp_transactional-3422332
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #5
utkarsh_kumar_singh commentedI am working on it.
Comment #8
utkarsh_kumar_singh commentedFix the eslint warnings and fix some phpstan errors.
Comment #9
dieterholvoet commentedThe pipeline is not passing yet.
Comment #13
danrodComment #14
danrodComment #15
danrodI fixed all of the ESLINT / PHPUnit tests issues and it's all green now: https://git.drupalcode.org/project/mailchimp_transactional/-/merge_reque...
I had to refactor the
MailchimpTransactionalPluginMailTest.phpfile to make the test to pass, anyways, the tests need some refactoring, I'm not sure why$this->config /code>is <code>NULLin theTransactionMailclass when running the PHPUnit tests.Comment #16
danrodComment #17
dieterholvoet commentedWe'll have to drop support for PHP 7.3 if we're adding property types, but I think that's acceptable. Left some comments in the MR.
Comment #18
danrodComment #19
danrodComment #20
danrodI fixed all issues mentioned in the comments above, except for the Mail test of course
https://git.drupalcode.org/issue/mailchimp_transactional-3422332/-/jobs/...
I can't think of a solution at the moment, will revisit this later shortly I hope.
Comment #21
dieterholvoet commentedTest is fixed.
Comment #22
ankitv18 commentedChanges looks good ~~ Pipeline are passing , CSpell is still having some smell which I can guess cover in this only.
Keeping this in NR for other to take a look.
Comment #23
dieterholvoet commentedI created a separate issue for the remaining CSpell issue: #3543322: Clean up config keys. I'm going to apply a patch of these changes to a website that uses the module a lot and keep it running for a couple weeks. If all is good afterwards, I'll merge this.
Comment #24
dieterholvoet commentedTests are finally passing again. Thanks for the work everyone!
Comment #27
danrodThanks and don't forget to add the credits to anyone who contributed on this, if possible @dieterholvoet .
Comment #28
dieterholvoet commentedI already tried a couple times but the new contribution record system has been acting up. I tried again.