1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-24 01:02:09 +02:00
tldr/pages/common/parallel-lint.md
Vitor Henrique c8f956319f
pages*: simplify page description (#12149)
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
2024-02-14 21:25:13 +01:00

821 B

parallel-lint

Check the syntax of PHP files in parallel. More information: https://github.com/JakubOnderka/PHP-Parallel-Lint.

  • Lint a specific directory:

parallel-lint {{path/to/directory}}

  • Lint a directory using the specified number of parallel processes:

parallel-lint -j {{processes}} {{path/to/directory}}

  • Lint a directory, excluding the specified directory:

parallel-lint --exclude {{path/to/excluded_directory}} {{path/to/directory}}

  • Lint a directory of files using a comma-separated list of extension(s):

parallel-lint -e {{php,html,phpt}} {{path/to/directory}}

  • Lint a directory and output the results as JSON:

parallel-lint --json {{path/to/directory}}

  • Lint a directory and show Git Blame results for rows containing errors:

parallel-lint --blame {{path/to/directory}}