nette/code-checker

✅ Nette CodeChecker: A simple tool to check source code against a set of Nette coding standards.

Installs: 96 208

Dependents: 2

Suggesters: 0

Stars: 76

Watchers: 21

Forks: 23

Open Issues: 1

Type:project

v3.1.0 2019-04-03 20:40 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)
	-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.1 and supports PHP up to 7.3. (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.