PHP code example of mglaman / drupal-check

1. Go to this page and download the library: Download mglaman/drupal-check library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

mglaman / drupal-check example snippets


composer global 

php vendor/bin/drupal-check [options] [--] <path>...

php vendor/bin/drupal-check web/modules/contrib/address

php vendor/bin/drupal-check -d web/modules/contrib/address

php vendor/bin/drupal-check -a web/modules/contrib/address
neon
parameters:
	customRulesetUsed: true
	ignoreErrors:
		- '#\Drupal calls should be avoided in classes, use dependency injection instead#'
		- '#Plugin definitions cannot be altered.#'
		- '#Missing cache backend declaration for performance.#'
		- '#Plugin manager has cache backend specified but does not declare cache tags.#'

	# FROM mglaman/drupal-check/phpstan/base_config.neon
	reportUnmatchedIgnoredErrors: false
	excludePaths:
		- */tests/Drupal/Tests/Listeners/Legacy/*
		- */tests/fixtures/*.php
		- */settings*.php
		- */bower_components/*
		- */node_modules/*