Problem / Motivation
The project currently does not fully comply with the coding standards enforced by PHPCS.
Ensuring consistent code style improves readability, maintainability, and reduces the risk of introducing subtle bugs.
Proposed Resolution
• Review the current PHPCS configuration.
• Fix or refactor code to comply with the defined coding standards.
• Update the PHPCS configuration file if necessary to enforce the standards consistently.
• Ensure that the CI pipeline runs PHPCS and passes without errors.
Acceptance Criteria
• PHPCS reports no violations in the codebase.
• Code adheres to the agreed-upon coding standards.
• The CI pipeline passes successfully with PHPCS checks.
Issue fork l10n_server-3553022
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 #4
donquixote commentedComment #5
donquixote commentedBtw the unused import we may have to restore later, when we inject the service.
But that's ok.
Pipeline passes for phpcs.
The phpcs check is set to required already:
Comment #6
donquixote commentedThe MR is super unimpressive, and that is how it should be :)
Comment #7
donquixote commentedIt is using the default phpcs rules used for all projects.
We don't have custom phpcs rules for this module.
done :)
We can see in upstream pipeline that phpcs runs and fails..
Comment #8
paraderojether commentedHi
I reviewed MR!86, and confirmed that the PHPCS is now passed on the Gitlab CI.
Moving this to RTBC.
Thank you.
Comment #12
fmb commentedAre you still going to work on this issue about PHPCS CI failures, or can we mark it as fixed?
Comment #13
donquixote commentedphpcs is green, the scope of this issue is complete.