commands.sh

drupal-check

all

Check Drupal PHP code for deprecations.

More info →

Options (2)

-e, --exclude-dirboolean

Check the code excluding a comma-separated list of directories

Example: drupal-check {{[-e|--exclude-dir]}} {{path/to/excluded_directory}},{{path/to/excluded_files/*.php}} {{path/to/directory}}
-a, --analysisboolean

Perform static analysis to detect bad coding practices

Example: drupal-check {{[-a|--analysis]}} {{path/to/directory}}

Examples (4)

Check the code in a specific directory for deprecations

drupal-check path/to/directory

Check the code excluding a comma-separated list of directories

drupal-check [-e|--exclude-dir] path/to/excluded_directory,path/to/excluded_files/*.php path/to/directory

Don't show a progress bar

drupal-check --no-progress path/to/directory

Perform static analysis to detect bad coding practices

drupal-check [-a|--analysis] path/to/directory
made by @shridhargupta | data from tldr-pages