2025-03-14 21:59:59 -06:00
|
|
|
# drupal-check
|
|
|
|
|
|
|
|
|
|
> Check Drupal PHP code for deprecations.
|
2025-05-08 12:26:01 -06:00
|
|
|
> More information: <https://github.com/mglaman/drupal-check#usage>.
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Check the code in a specific directory for deprecations:
|
|
|
|
|
|
|
|
|
|
`drupal-check {{path/to/directory}}`
|
|
|
|
|
|
|
|
|
|
- Check the code excluding a comma-separated list of directories:
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`drupal-check {{[-e|--exclude-dir]}} {{path/to/excluded_directory}},{{path/to/excluded_files/*.php}} {{path/to/directory}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Don't show a progress bar:
|
|
|
|
|
|
|
|
|
|
`drupal-check --no-progress {{path/to/directory}}`
|
|
|
|
|
|
|
|
|
|
- Perform static analysis to detect bad coding practices:
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`drupal-check {{[-a|--analysis]}} {{path/to/directory}}`
|