Update cheatsheets

This commit is contained in:
ivuorinen
2025-04-27 00:21:02 +00:00
parent 47db9e503e
commit 5bf37ece1a
136 changed files with 315 additions and 144 deletions

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# drupal-check
> Check Drupal PHP code for deprecations.
> More information: <https://github.com/mglaman/drupal-check>.
> More information: <https://github.com/mglaman/drupal-check#usage>.
- Check the code in a specific directory for deprecations:
@@ -14,7 +14,7 @@ source: https://github.com/tldr-pages/tldr.git
- 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}}`
`drupal-check {{[-e|--exclude-dir]}} {{path/to/excluded_directory}},{{path/to/excluded_files/*.php}} {{path/to/directory}}`
- Don't show a progress bar:
@@ -22,4 +22,4 @@ source: https://github.com/tldr-pages/tldr.git
- Perform static analysis to detect bad coding practices:
`drupal-check --analysis {{path/to/directory}}`
`drupal-check {{[-a|--analysis]}} {{path/to/directory}}`