2017 © Pedro Pelรกez
 

project code-checker

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

image

nette/code-checker

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

  • Friday, June 22, 2018
  • by david@grudl.com
  • Repository
  • 20 Watchers
  • 73 Stars
  • 78,128 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 21 Forks
  • 1 Open issues
  • 18 Versions
  • 3 % Grown

The README.md

Code Checker

Downloads this Month Tests Latest Stable Version License, (*1)

Introduction

The tool called that checks and possibly repairs some of the formal errors in your source code., (*2)

Documentation can be found on the website. If you like it, please make a donation now. Thank you!, (*3)

Usage

Usage: php code-checker [options]

Options:
    -d <path>             Folder or file to scan (default: current directory)
    -i | --ignore <mask>  Files to ignore
    -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

Without parameters, it checks the current working directory in a read-only mode, with -f parameter it fixes files., (*4)

Before you get to know the tool, be sure to backup your files first., (*5)

You can create a batch file, e.g. code.bat, for easier execution of Code-Checker under Windows:, (*6)

php path_to\Nette_tools\Code-Checker\code-checker %*

What Code-Checker Does?

  • removes BOM
  • checks validity of Latte templates
  • checks validity of .neon, .php and .json files
  • checks for control characters
  • checks whether the file is encoded in UTF-8
  • controls misspelled /* @annotations */ (second asterisk missing)
  • removes PHP ending tags ?> in PHP files
  • removes trailing whitespace and unnecessary blank lines from the end of a file
  • normalizes line endings to system-default (with the -l parameter)

Installation

Install it via Composer. This project is not meant to be run as a dependency, so install it as standalone:, (*7)

composer create-project nette/code-checker

Or install it globally via:, (*8)

composer global require nette/code-checker

and make sure your global vendor binaries directory is in your $PATH environment variable., (*9)

It requires PHP version 8.0., (*10)

The Versions

22/06 2018

dev-master

9999999-dev

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

  Sources   Download

GPL-3.0 BSD-3-Clause GPL-2.0

The Requires

 

The Development Requires

code nette analyse

28/05 2018

v3.0.0

3.0.0.0

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

  Sources   Download

GPL-3.0 BSD-3-Clause GPL-2.0

The Requires

 

The Development Requires

code nette analyse

26/03 2018

v2.13.0

2.13.0.0

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

  Sources   Download

GPL-3.0 BSD-3-Clause GPL-2.0

The Requires

 

The Development Requires

code nette analyse

21/03 2018

v2.12.0

2.12.0.0

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

  Sources   Download

GPL-3.0 BSD-3-Clause GPL-2.0

The Requires

 

The Development Requires

code nette analyse

28/07 2017

v2.11.0

2.11.0.0

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

  Sources   Download

GPL-3.0 BSD-3-Clause GPL-2.0

The Requires

 

The Development Requires

code nette analyse

12/06 2017

v2.10.0

2.10.0.0

โœ… A simple tool to check source code against a set of Nette coding standards.

  Sources   Download

GPL-3.0 BSD-3-Clause GPL-2.0

The Requires

 

The Development Requires

code nette analyse

12/06 2017

v2.9.1

2.9.1.0

โœ… A simple tool to check source code against a set of Nette coding standards.

  Sources   Download

GPL-3.0 BSD-3-Clause GPL-2.0

The Requires

 

code nette analyse

29/03 2017

v2.9.0

2.9.0.0

โœ… A simple tool to check source code against a set of Nette coding standards.

  Sources   Download

GPL-3.0 BSD-3-Clause GPL-2.0

The Requires

 

code nette analyse

18/01 2017

v2.8.0

2.8.0.0

A simple tool to check source code against a set of coding standards.

  Sources   Download

GPL-3.0 BSD-3-Clause GPL-2.0

The Requires

 

26/10 2016

v2.7.2

2.7.2.0

A simple tool to check source code against a set of coding standards.

  Sources   Download

GPL-3.0 BSD-3-Clause GPL-2.0

The Requires

 

21/07 2016

v2.7.1

2.7.1.0

A simple tool to check source code against a set of coding standards.

  Sources   Download

GPL-3.0 BSD-3-Clause GPL-2.0

The Requires

 

28/06 2016

v2.7.0

2.7.0.0

A simple tool to check source code against a set of coding standards.

  Sources   Download

GPL-3.0 BSD-3-Clause GPL-2.0

The Requires

 

06/02 2016

v2.6.0

2.6.0.0

A simple tool to check source code against a set of coding standards.

  Sources   Download

GPL-3.0 BSD-3-Clause GPL-2.0

The Requires

 

21/05 2015

v2.5.0

2.5.0.0

A simple tool to check source code against a set of coding standards.

  Sources   Download

GPL-3.0 BSD-3-Clause GPL-2.0

The Requires

 

25/02 2015

v2.4.0

2.4.0.0

A simple tool to check source code against a set of coding standards.

  Sources   Download

GPL-3.0 BSD-3-Clause GPL-2.0

The Requires

 

12/01 2015

v2.3.1

2.3.1.0

A simple tool to check source code against a set of coding standards.

  Sources   Download

GPL-3.0 BSD-3-Clause GPL-2.0

The Requires

 

18/11 2014

v2.3.0

2.3.0.0

A simple tool to check source code against a set of coding standards.

  Sources   Download

GPL-3.0 BSD-3-Clause GPL-2.0

The Requires

 

18/08 2014

v2.2.0

2.2.0.0

A simple tool to source code against a set of coding standards.

  Sources   Download

GPL-3.0 BSD-3-Clause GPL-2.0

The Requires