PHPDoc Checker

May 9, 2022 ยท View on GitHub

Minimum PHP version: 7.4.0 Actions PHP Censor Codecov Latest Version Total downloads License

PHPDoc Checker

Check PHP files within a directory for appropriate use of PHPDocs (Docblocks). PHPDoc Checker is fork of PHP DocBlock Checker.

Installation

Composer:

composer require php-censor/phpdoc-checker

Building Phar Package

box.phar compile

Usage

vendor/bin/phpdoc-checker {params}

Parameters

ShortLongDescription
-h--helpDisplay help message.
-x--exclude=EXCLUDEFiles and directories to exclude.
-d--directory=DIRECTORYDirectory to scan. [default: "./"]
-f--files=FILESFiles to scan.
none--skip-classesDon't check classes for docblocks.
none--skip-methodsDon't check methods for docblocks.
none--skip-signaturesDon't check docblocks against method signatures.
-j--jsonOutput JSON instead of a log.
-l--files-per-line=FILES-PER-LINENumber of files per line in progress [default: 50]
-w--fail-on-warningsConsider the check failed if any warnings are produced.
-i--info-onlyInformation-only mode, just show summary.
-q--quietDo not output any message.
-V--versionDisplay this application version.
none--ansiForce ANSI output.
none--no-ansiDisable ANSI output.
-n--no-interactionDo not ask any interactive question.
-v -vv -vvv--verboseIncrease the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug.

Unit tests

Phpunit tests:

vendor/bin/phpunit --configuration=phpunit.xml.dist --coverage-text --coverage-html=tests/var/coverage

License

PHPDoc Checker is open source software licensed under the BSD-2-Clause license.