Update cheatsheets

This commit is contained in:
ivuorinen
2024-02-21 11:19:49 +00:00
parent 4e88a1b42f
commit 3d653cc7e6
4803 changed files with 127002 additions and 0 deletions

25
drupal-check Normal file
View File

@@ -0,0 +1,25 @@
---
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>.
- 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 --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 --analysis {{path/to/directory}}`