Automating code quality check using GrumPHP in Magento 2

This page summarizes the projects mentioned and recommended in the original post on dev.to

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • PHP Mess Detector

    PHPMD is a spin-off project of PHP Depend and aims to be a PHP equivalent of the well known Java tool PMD. PHPMD can be seen as an user friendly frontend application for the raw metrics stream measured by PHP Depend.

  • PHP Code Sniffer

    PHP_CodeSniffer tokenizes PHP files and detects violations of a defined set of coding standards.

  • suppose we miss a space at the end of the file, and phpcs fails while running the automated pipelines on pull request merge.

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • GrumPHP

    A PHP code-quality tool

  • grumphp can be configured to listen to git commit commands and will not allow until all quality checks passed.

  • magento-coding-standard

    Magento Coding Standard

  • PHP CS Fixer

    A tool to automatically fix PHP Coding Standards issues

  • PHPCS Fixer 2

  • PHPStan

    PHP Static Analysis Tool - discover bugs in your code without running it!

  • grumphp-swagger

    GrumPHP Swagger check

  • You can check out a small task created by me to validate swagger documentation before every commit. https://github.com/milindsingh/grumphp-swagger

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • PHP-Parallel-Lint

    This tool check syntax of PHP files faster than serial check with fancier output.

  • #### PHPLint

  • magento2-grumphp

    Ultimate GrumPHP configuration for Magento 2 automated code quality checks

  • Create a grumphp.yml file in magento-2-root and copy all content as below code.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts