Forrest logo
back to the phploc tool

phploc:tldr:4f193

phploc: Exclude specific files from a comma-separated list (globs are allowed).
$ phploc ${path-to-directory} --names-exclude ${files}
try on your machine

This command is used to run the PHPLOC tool on a specific directory with the ability to exclude certain file names.

Explanation of the command:

  • phploc: This is the command to run the PHPLOC tool, which is a static analysis tool for measuring various aspects of a PHP project, such as lines of code, number of classes, number of methods, etc.

  • ${path-to-directory}: This is the placeholder for the path to the directory you want to run the analysis on. You need to replace ${path-to-directory} with the actual path to the directory you want to analyze.

  • --names-exclude ${files}: This is an option to exclude specific file names from the analysis. ${files} represents the file names you want to exclude. You need to replace ${files} with the actual file names you want to exclude, separated by commas if there are multiple files.

For example, suppose you want to run PHPLOC on the directory /path/to/project excluding files file1.php and file2.php, the command would be:

phploc /path/to/project --names-exclude file1.php,file2.php

This command will run PHPLOC on the /path/to/project directory, excluding the files file1.php and file2.php from the analysis.

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 phploc tool