Files
cheatsheet-tldr/tldr/drupal-check
2025-04-27 00:21:02 +00:00

26 lines
709 B
Plaintext

---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# 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}}`