-
Notifications
You must be signed in to change notification settings - Fork 544
Code quality checkers
Yannick Warnier edited this page Jul 6, 2021
·
1 revision
Chamilo 2 has a series of processes in place to validate code quality.
If you send commits through pull requests, these will be automatically submitted to those validation processes, but if you want to do that on your own computer, you can do so using the following commands.
These commands and more can be found in the scripts preparing the Actions tab, in the .github directory at the root of Chamilo.
# to ensure it uses the latest version of your code
php vendor/bin/ecs check --clear-cache
# to check
php vendor/bin/ecs check
# to change the files based on what it recommends should be changed (apply with caution)
php vendor/bin/ecs check --fix
php vendor/bin/psalm --show-info=false
php vendor/bin/phpstan analyse
-
Home
- Tools and sessions
- Quiz: Importing
- Releases
- Community
- Development
- Getting started
- Development principles
- Technical design decisions
- Coding conventions v1
- Coding conventions v2
- Add a new Chamilo setting
- Database structure
- Date and time management
- Permissions
- Password management
- Session expiry time
- Code annotation types
- Code quality checkers
- Converting legacy SQL
- Settings migration v1 → v2
- Configurations
- Secure development policy
- Plugin development
- Adding page types
- Design
- Integration
