This project is not covered by Drupal’s security advisory policy.

A Mago extension that adds Drupal knowledge to Mago's linter and analyzer.

  • Linter: Drupal's coding standard. With mago format and Mago's own rules, it replaces phpcs and Coder for the PHP files of a Drupal project. The parity target is Coder 9.
  • Analyzer: types for services, entity types and their handlers, entity fields and config, read from the project without booting Drupal. It also reports Drupal deprecations and common mistakes, such as an entity query with no access check. It covers the same ground as phpstan-drupal.

Status

The code, issues and releases are moving here from GitHub. Until the first release on drupal.org, install amateescu/mago-drupal from Packagist and follow the setup in the GitHub README. The analyzer is still in development and isn't in a release yet.

Requirements

  • PHP 8.1 or later
  • Mago 1.52 or later

Project information

  • Created by amateescu on , updated
  • shield alertThis project is not covered by the security advisory policy.
    Use at your own risk! It may have publicly disclosed vulnerabilities.

Releases