Tools to use for reviews
This documentation needs work. See "Help improve this page" in the sidebar.
The tools which are helpful for automatic reviews are PHP_CodeSniffer and PHPStan. The report they output still needs to be reviewed by a person: There could be false positives that should be not reported to the applicants.
Although, since GitLab CI is now enabled for all the projects, it is better to use GitLab CI to make any automatic review of the code. Doing so, applicants would not get a different report they would get from GitLab CI, if it has been enabled for the project used for the application.
Running GitLab CI tests locally explains how to test a contributed module locally.
Alternatively, it is possible to run PHP_CodeSniffer and PHPStan without DDEV, but the configuration files for those tools should be the same used by GitLab CI on https://git.drupalcode.org/. (Those files can be found in the GitLab Templates repository.)
Help improve this page
You can:
- Log in, click Edit, and edit this page
- Log in, click Discuss, update the Page status value, and suggest an improvement
- Log in and create a Documentation issue with your suggestion