Skip to content
This repository has been archived by the owner on Jun 28, 2023. It is now read-only.

Urbanproof/phpcs-pre-commit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Run PHPCS on pre-commit hook

Installation

  1. Add following lines to composer.json:
    scripts: {
        "install-pre-commit-hook": ["bash ./vendor/urbanproof/phpcs-pre-commit/setup.sh"],
        "post-install-cmd": ["@install-pre-commit-hook"],
        "post-update-cmd": ["@install-pre-commit-hook"]
    },
    "repositories": [
        {
            "type": "vcs",
            "url": "https://github.com/Urbanproof/phpcs-pre-commit.git"
        }
    ]
  2. Require; composer require --dev "urbanproof/phpcs-pre-commit"

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages