banovo/coding-standard

CodeSniffer ruleset for the Banovo PHP coding standard

Installs: 5 151

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 4

Forks: 0

Open Issues: 0

Type:phpcodesniffer-standard

0.7.6 2020-02-14 09:16 UTC

README

Build Status

Installation

Add to composer.json:

"require-dev": {
    "banovo/coding-standard": "0.3.*"
},
"scripts": {
    "post-install-cmd": [
        "echo 'bin/checker' > .git/hooks/pre-commit"
    ],
    "post-update-cmd": [
        "echo 'bin/checker' > .git/hooks/pre-commit"
    ]
},

Add to wercker.yml:

build:
    steps:
        - script:
            name: Coding Standards and Syntax Check
            code: bin/checker

Usage

Pre-commit hook will execute checker automatically, when you run git commit.

Execute bin/checker -h to see additional configuration.

Update

Ensure it is up-to-date: