ypsylon/code-checker

✅ Nette CodeChecker: Fork with --allow-spaces option.

Installs: 42

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 28

Type:project

v3.2.2 2020-07-21 12:55 UTC

README

Downloads this Month Build Status Latest Stable Version License

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.