LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

parallel-lint

checks PHP files for syntax errors in parallel

TLDR

Lint PHP files in a directory
$ parallel-lint [src/]
copy
Lint with exclusions
$ parallel-lint --exclude [vendor] [.]
copy
Lint with a specific PHP executable
$ parallel-lint -p [/usr/bin/php8.1] [src/]
copy
Lint with git blame for errors
$ parallel-lint --blame [src/]
copy
Output results as JSON
$ parallel-lint --json [src/]
copy

SYNOPSIS

parallel-lint [options] paths...

DESCRIPTION

parallel-lint checks PHP files for syntax errors in parallel. It provides fast syntax checking across multiple files and directories. It does not check code style, only syntax validity. By default it runs 10 parallel jobs and checks common PHP file extensions.

PARAMETERS

--exclude path

Exclude a file or directory from checking. Use multiple times to exclude several paths.
-p php
Specify PHP executable to run (default: php).
-s, --short
Set shortopentag to On (default: Off).
-e ext
Check only files with selected extensions separated by comma (default: php,php3,php4,php5,phtml,phpt).
-j num
Number of parallel jobs (default: 10).
--blame
Try to show git blame for the line with error.
--git git
Path to Git executable for blame messages (default: git).
--colors
Enable colored console output.
--no-colors
Disable colored console output.
--no-progress
Disable progress output.
--checkstyle
Output results as Checkstyle XML.
--json
Output results as JSON string.
--show-deprecated
Show PHP deprecation warnings.
-h, --help
Print help.
-V, --version
Display the application version.

INSTALL

sudo apt install moreutils
copy
sudo dnf install moreutils
copy
sudo pacman -S moreutils
copy
sudo apk add parallel
copy
sudo zypper install moreutils
copy
brew install moreutils
copy
nix profile install nixpkgs#moreutils
copy

SEE ALSO

php(1), phpcs(1)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid