Tools to use for reviews

Last updated on
16 July 2025

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

Page status: Needs work

You can: