2020-10-05 16:55:19 +02:00
|
|
|
# drupal-check
|
|
|
|
|
|
|
|
> Check Drupal PHP code for deprecations.
|
2025-04-26 06:25:38 +03:00
|
|
|
> More information: <https://github.com/mglaman/drupal-check#usage>.
|
2020-10-05 16:55:19 +02: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-04-26 06:25:38 +03:00
|
|
|
`drupal-check {{[-e|--exclude-dir]}} {{path/to/excluded_directory}},{{path/to/excluded_files/*.php}} {{path/to/directory}}`
|
2020-10-05 16:55:19 +02:00
|
|
|
|
|
|
|
- Don't show a progress bar:
|
|
|
|
|
|
|
|
`drupal-check --no-progress {{path/to/directory}}`
|
|
|
|
|
|
|
|
- Perform static analysis to detect bad coding practices:
|
|
|
|
|
2025-04-26 06:25:38 +03:00
|
|
|
`drupal-check {{[-a|--analysis]}} {{path/to/directory}}`
|