Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/pre commit #325

Merged
merged 8 commits into from
Feb 24, 2025
Merged

Fix/pre commit #325

merged 8 commits into from
Feb 24, 2025

Conversation

webaaz
Copy link
Member

@webaaz webaaz commented Feb 13, 2025

Reason for change

For now pre-commit hook works locally, and it's a pain to change PHP version each time we need composer or phpcs.

PHPCS should work into a docker container, we don't need PHP locally.

Linear task

Code changes

Dockerfiles

How to test

As a reviewer, you are encouraged to test the PR locally.

You can test pre-commit hook

Checklist for authors and reviewers

  • The title of the PR uses business wording, not technical jargon, for the changelog readers to understand it
  • The PR implements the changes asked in the referenced task / issue
  • The automated tests are compliant with the testing strategy
  • The tests are relevant, and cover the corner/error cases, not only the happy path
  • You understand the impact of this PR on existing code/features
  • The changes include adequate logging and Datadog traces
  • Documentation is updated (API, developer documentation, ADR, Notion...)

Non applicable

@webaaz webaaz requested review from a team as code owners February 13, 2025 14:52
@github-actions github-actions bot added the type: bugfix Bug fix label Feb 13, 2025

This comment has been minimized.

This comment has been minimized.

@webaaz webaaz changed the base branch from main to develop February 14, 2025 08:16

This comment has been minimized.

This comment has been minimized.

Copy link
Contributor

@carine-bonnafous carine-bonnafous left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we could add the build command of phpcs/phpcbf dockers in the bin/coding-standard scripts ? It may not be clear for everyone that it is a prerequisite to have both image built for the pre-commit hook to work.

On my side, I get this error at pre-commit : ERROR: Referenced sniff "WordPress-Extra" does not exist : Do you have an idea about that ?

Also, but it may be a personal preference, I was wondering if we could keep only one dockerfile with PHP5.6, with everything installed, and thus having only one image for all commands requiring PHPH5.6 ?

This comment has been minimized.

This comment has been minimized.

This comment has been minimized.

This comment has been minimized.

This comment has been minimized.

This comment has been minimized.

Copy link

⏳E2E tests are currently running.
➡️ You can follow their progression here.

Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
1 Security Hotspot
0.0% Coverage on New Code (required ≥ 50%)
3 New Critical Issues (required ≤ 0)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

@webaaz webaaz merged commit 993110f into develop Feb 24, 2025
6 of 8 checks passed
@webaaz webaaz deleted the fix/pre-commit branch February 24, 2025 16:55
Copy link

❌ E2E tests have failed.
➡️ You can find the results here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants