Forrest logo
back to the drupal-check tool

drupal-check:tldr:dac96

drupal-check: 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}
try on your machine

This command is using the "drupal-check" tool to analyze a Drupal project's PHP code for potential issues or errors. Here is an explanation of each part of the command:

  • "drupal-check" is the command used to run the "drupal-check" tool in the command line.
  • "--exclude-dir" is an option that allows you to exclude specific directories from being analyzed by "drupal-check". This can be useful to avoid analyzing some third-party or non-Drupal code.
  • "${path-to-excluded_directory}" is the path to the directory you want to exclude from analysis. You need to replace this placeholder with the actual path to the directory you want to exclude.
  • "${path-to-excluded_files--php}" is another placeholder representing a pattern of files that need to be excluded from analysis. The "" is considered as a wildcard character that matches any characters. Again, replace this placeholder with the actual path to the excluded files.
  • "${path-to-directory}" is the path to the Drupal project directory that you want to analyze. Replace this placeholder with the actual path to your Drupal project directory.

So overall, this command is running "drupal-check" on a Drupal project, excluding specific directories and files from analysis, and specifying the path to the Drupal project directory.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the drupal-check tool