A simple tool to check source code against a set of Nette coding standards.
Documentation can be found on the website.
If you like Nette, please make a donation now. Thank you!
code-checker [options]
Options:
-d <path> folder to scan (default: current directory)
-i | --ignore <mask> files or directories to ignore (can be used multiple times)
-f | --fix fixes files
-l | --eol convert newline characters
--no-progress do not show progress dots
--strict-types checks whether PHP 7.0 directive strict_types is enabled
It requires PHP version 7.1 and supports PHP up to 7.2. (Version 2.x works with PHP 5.6.)
Install it via Composer. This project is not meant to be run as a dependency, so install it as standalone:
composer create-project nette/code-checker
Or install it globally via:
composer global require nette/code-checker
and make sure your global vendor binaries directory is in your $PATH
environment variable.