Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/arif-rh/git-hooks
Encourage development teams to use better coding style using pre-commit git hooks
https://github.com/arif-rh/git-hooks
Last synced: about 1 month ago
JSON representation
Encourage development teams to use better coding style using pre-commit git hooks
- Host: GitHub
- URL: https://github.com/arif-rh/git-hooks
- Owner: arif-rh
- License: mit
- Created: 2020-04-24T13:25:28.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-04-24T15:16:51.000Z (over 4 years ago)
- Last Synced: 2024-10-11T19:09:31.623Z (2 months ago)
- Language: Shell
- Size: 4.88 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Git Hooks
Encourage development teams to use better coding style:
- PHP Linter will help to avoid commit with invalid script
- Encourage team to have same coding standard## Features
This package will install pre-commit hooks to the repository to encourage team using same coding standard.
## Installation
1. `composer require arif-rh/git-hooks`
2. in the main `composer.json` add these scripts:````
"scripts": {
"post-install-cmd": [
"Arifrh\\GitHooks\\PreCommit::PSR2" // or CI4
],
"post-update-cmd": [
"Arifrh\\GitHooks\\PreCommit::PSR2" // or CI4
]
}
````
Note:
- use `PSR2` if you want to use PSR2 Standard, and use `CI4` if you want to use CodeIgniter4 standard