1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/common/drupal-check.md
Managor dd77012848
common*: refresh old pages part 4 (#16258)
Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>
2025-04-26 06:25:38 +03:00

616 B

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