nikolareljin / wp-precommit-hooks
Pre-commit hook for WordPress projects
Installs: 30
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
Language:Shell
Type:composer-plugin
Requires
- composer-plugin-api: ^1.1
- dealerdirect/phpcodesniffer-composer-installer: *
- overtrue/phplint: ^1.1
- php-mock/php-mock-phpunit: >=0.3
- phpunit/phpunit: ^4.8
- wp-coding-standards/wpcs: *
This package is auto-updated.
Last update: 2025-03-17 10:35:23 UTC
README
WP Pre-Commit Hooks
Will check for the code standards in PHP and JavaScript/React.
Include in your projects
Include the project in your Composer file:
*nikolareljin/wp-precommit-hooks*
You can run :
composer require nikolareljin/wp-precommit-hooks -dev -vv
Or include the plugin in your composer file:
{ "name": "testing-the-plugin", "type": "project", "description": "testing how git commit hooks work", "require": { "php": ">=7.1" }, "require-dev": { "php": ">=7.1", "nikolareljin/wp-precommit-hooks": ">=1.0.2" }, "minimum-stability": "dev", "prefer-stable": true }
Usage
On git commit
, it will trigger code checkup for WP and React/Gutenberg standards.
Run / Install
In the terminal, run:
npm install
composer install