-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Related to: #10
Problem:
Currently, our CI pipeline in GitHub Actions is failing due to several errors across different tools, including:
- Linting errors (PHP CodeSniffer with Moodle standards)
- Code style issues
- Behat test failures
- PHP Mess Detector violations
These errors are causing the pipeline to not pass consistently, making it difficult to ensure code quality and maintainability across the project.
Steps to Resolve:
-
Fix Linting Errors:
- Run
phpcswith the Moodle coding standards across the codebase. - Address all identified issues related to formatting, array syntax, and missing docblocks.
- Run
-
Code Style Fixes:
- Run
phpcbfto automatically fix any code style violations that can be resolved by the tool. - Manually address any remaining issues that
phpcbfcannot fix.
- Run
-
Behat Test Failures:
- Investigate the cause of failing Behat tests.
- Fix any logic or environment issues causing these failures.
-
PHP Mess Detector:
- Review and resolve any violations reported by PHP Mess Detector (PHPMD).
- Ensure that all unused code, overly complex methods, and naming conventions are addressed.
-
Continuous Testing:
- After making the necessary fixes, ensure that the CI pipeline passes successfully with no errors in the following:
- Linting (
phpcs) - Code style (
phpcbf) - Behat tests
- PHP Mess Detector (
phpmd)
- Linting (
- After making the necessary fixes, ensure that the CI pipeline passes successfully with no errors in the following:
Goal:
To have a fully green CI pipeline with all tests passing, ensuring the project meets high-quality standards and adheres to the Moodle coding guidelines.
Priority: High
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request