ypsylon / code-checker
✅ Nette CodeChecker: Fork with --allow-spaces option.
v3.2.2
2020-07-21 12:55 UTC
Requires
- php: >= 7.2
- latte/latte: ^2.5
- nette/application: ^3.0
- nette/caching: ^3.0
- nette/command-line: ^1.5
- nette/finder: ^2.5
- nette/forms: ^3.0
- nette/neon: ^3.0
- nette/utils: ^3.0
Requires (Dev)
- nette/tester: ^2.0
- phpstan/phpstan: ^0.12
- tracy/tracy: ^2.6
README
Introduction
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!
Usage
code-checker [options]
Options:
-d <path> folder to scan (default: current directory, can be used multiple times)
-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
Installation
It requires PHP version 7.2 and supports PHP up to 7.4. (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.