Skip to content

Nedeas/phpcs-umanit-standard

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

PHPCS UmanIT Standard

A coding standard for PHPCS.

Installation

Our coding standard use Symfony2 and Wordpress standards.

mkdir -p path/to/standards
git clone https://github.com/escapestudios/Symfony2-coding-standard.git path/to/standards/symfony2
git clone https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards.git path/to/standards/wordpress
git clone https://github.com/umanit/phpcs-umanit-standard.git path/to/standards/umanit
phpcs --config-set installed_paths /absolute/path/to/standards/symfony2,/absolute/path/to/standards/wordpress,/absolute/path/to/standards/umanit
phpcs -i

Basic usage

In the following commands, [standard] is one of the coding standards listed by phpcs -i.

To sniff a file or directory for coding standard violations :

phpcs --standard=[standard] -s --colors path/to/file/or/directory

To fix the violations automatically, run :

phpcbf --standard=[standard] path/to/file/or/directory

About

UmanIT coding standard

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%