Closed (fixed)
Project:
AI Image Alt Text
Version:
1.0.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
7 Sep 2024 at 07:22 UTC
Updated:
31 Dec 2024 at 07:54 UTC
Jump to comment: Most recent
GitLab CI reports PHP_CodeSniffer errors/warnings which should be fixed.
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 #2
avpadernoComment #4
avpadernoComment #5
Anonymous (not verified) commentedComment #6
Anonymous (not verified) commentedRebasing to get the latest changes, Will solve the remaining PHPCS warnings
Comment #7
Anonymous (not verified) commentedSolved all the PHPCS errors
Also solved the cspell error
PHPCS and cspell pipelines are all green
Moving to needs review
Comment #8
Anonymous (not verified) commentedComment #9
a.aaronjake commentedComment #10
a.aaronjake commentedHi @akulsaxena,
I have checked the pipeline and re-ran the phpcs and cspell jobs and confirmed the jobs succeeded.
Will now move this to RTBC.
Thanks,
Jake
Comment #11
avpadernoComment #12
Anonymous (not verified) commentedI made the changes as suggested but the PHPCS pipeline is failing with the error:
Parameter $file has null default value, but is not marked as nullable.(SlevomatCodingStandard.TypeHints.NullableTypeForNullDefaultValue.NullabilityTypeMissing)Thus, I think it needs to be made nullable according to GitLab CI.
Thus reverting it back to the original change and setting $file back to nullable.
The PHPCS pipeline is now green
Comment #13
avpadernoThe merge request fixes all the reported PHP_CodeSniffer errors/warnings.
Comment #14
a.aaronjake commentedHi @akulsaxena & @avpaderno,
I have checked the pipeline and confirmed the phpcs are updated according to the suggestions. I have also re-ran the phpcs job and confirmed it succeeded.
Will now move this to RTBC.
Thanks,
Jake
Comment #15
marcus_johansson commentedThank you everyone, this is getting merged into dev and the next release.