HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

drupal-check — Check Drupal PHP code for deprecations. More information: <https://github.com/mglaman/drupal-check#u

Submitted by: @import:tldr-pages··
0
Viewed 0 times
drupal-checkcommanddrupalclicodephpcheckfor

Problem

How to use the drupal-check command: Check Drupal PHP code for deprecations. More information: <https://github.com/mglaman/drupal-check#usage>.

Solution

drupal-check — Check Drupal PHP code for deprecations. More information: <https://github.com/mglaman/drupal-check#usage>.

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}}

Code Snippets

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}}

Context

tldr-pages: common/drupal-check

Revisions (0)

No revisions yet.