Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Coding Standards at Crowdlab based on PEAR
PHP
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
Sniffs/WhiteSpace
.gitignore
README.md
ruleset.xml

README.md

Installation

sudo pear install PHP_CodeSniffer
git clone git@github.com:magazov/crowdcs.git
# настроить кодировку
sudo phpcs --config-set encoding utf-8
# настроить наш сниффер
sudo phpcs --config-set default_standard /path/to/crowdcs
# настройка парсера фабрикатора
cd /to/git/project
arc set-config  --local lint.engine ArcanistSingleLintEngine
arc set-config  --local lint.engine.single.linter ArcanistPhpcsLinter

Usage

Checking current branch against master

cd /path/to/project/
arc lint

Checking file

phpcs /path/to/file.php
Something went wrong with that request. Please try again.