Skip to content

Commit 4b83395

Browse files
committed
Fixed documentation
1 parent 1baea8d commit 4b83395

File tree

3 files changed

+18
-16
lines changed

3 files changed

+18
-16
lines changed

.github/workflows/executable-finder.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Executable Finder
22
# https://github.com/shivammathur/setup-php
33
on:
44
push:
5-
branches-ignore: [ master, infection ] #on master it only runs on ubuntu to speed up
5+
branches-ignore: [ master ] #on master it only runs on ubuntu to speed up
66

77
pull_request:
88
branches-ignore: [ master ]

README.md

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,20 @@
1-
# GitHooks
1+
# Wtyd/GitHooks
22

33
<p align="center">
4-
<a href="https://github.com/Wtyd/githooks/actions?query=workflow%3A%22Master%22" title="Build"><img src="https://github.com/Wtyd/githooks/workflows/Master/badge.svg"></a>
54
<a href="https://github.com/Wtyd/githooks/commits/" title="Last Commit"><img src="https://img.shields.io/github/last-commit/Wtyd/githooks"></a>
65
<a href="https://github.com/Wtyd/githooks/issues" title="Open Issues"><img src="https://img.shields.io/github/issues/Wtyd/githooks"></a>
76
<a href="https://github.com/Wtyd/githooks/blob/master/LICENSE" title="License"><img src="https://img.shields.io/github/license/Wtyd/githooks"></a>
87
<a href="#tada-php-support" title="PHP Versions Supported"><img alt="PHP Versions Supported" src="https://img.shields.io/badge/php-7.1%20to%207.4-777bb3.svg?logo=php&logoColor=white&labelColor=555555"></a>
98
<img src="https://img.shields.io/github/v/release/Wtyd/githooks">
109
</p>
10+
<p align="center">
11+
<a href="https://github.com/Wtyd/githooks/actions?query=workflow%3A%22Master%22" title="Build"><img src="https://github.com/Wtyd/githooks/workflows/Master/badge.svg"></a>
12+
<a href="https://github.com/Wtyd/githooks/actions?query=workflow%3A%22Code Analysis%22" title="Build"><img src="https://github.com/Wtyd/githooks/workflows/Code Analysis/badge.svg"></a>
13+
<a href="https://github.com/Wtyd/githooks/actions?query=workflow%3A%22Executable Finder%22" title="Build"><img src="https://github.com/Wtyd/githooks/workflows/Executable Finder/badge.svg"></a>
14+
<a href="https://github.com/Wtyd/githooks/actions?query=workflow%3A%22Schedule CI%22" title="Build"><img src="https://github.com/Wtyd/githooks/workflows/Schedule CI/badge.svg"></a>
15+
</p>
1116

12-
GitHooks helps you to manage the code validation tools. For example, in precommit stage, you can:
17+
GitHooks helps you to manage the code validation tools in git hooks. For example, in precommit stage, you can:
1318
1. Validate that the code follows the project standards.
1419
2. Verify that the code has no language syntax errors.
1520
3. Look for errors in the code (unused variables, excessive cyclomatic complexity, etc.).
@@ -24,21 +29,20 @@ GitHooks centralizes the configuration of the code validation tools and makes it
2429
* Or your owns scripts for the hooks.
2530

2631
# Install
27-
1. GitHooks must be installed like dev requirement with composer. Actually, it does not have [.phar](https://www.php.net/phar) support.
28-
32+
1. GitHooks must be installed like dev requirement with composer. Currently, it does not have [.phar](https://www.php.net/phar) packaging.
2933
```bash
3034
composer require --dev wtyd/githooks
3135
```
3236

33-
1. Install all needed [supported tools](#supported-tools). The installation method for the tools can be:
37+
2. Install all needed [supported tools](#supported-tools). The installation method for the tools can be:
3438
- Like global dependency with composer: `composer global require squizlabs/php_codesniffer`
3539
- Like dev requirement in the project: `composer require --dev sebastian/phpcpd`
3640
- Like .phar on the root of the project or with global access.
3741

38-
1. Initialize GitHooks with `vendor/bin/githooks conf:init`. This command creates the configuration file in the root paths (`githooks.yml`).
39-
1. Run `vendor/bin/githooks hook`. It Copies the script for launch GitHooks on the precommit event in `.git/hooks` directory. You can, also run `vendor/bin/githooks hook otherHook MyScriptFile.php` for set any hook with a custom script.
42+
3. Initialize GitHooks with `vendor/bin/githooks conf:init`. This command creates the configuration file in the root paths (`githooks.yml`).
43+
4. Run `vendor/bin/githooks hook`. It Copies the script for launch GitHooks on the precommit event in `.git/hooks` directory. You can, also run `vendor/bin/githooks hook otherHook MyScriptFile.php` for set any hook with a custom script.
4044

41-
1. [Set the configuration file](#Set-the-configuration-file).
45+
5. [Set the configuration file](#Set-the-configuration-file).
4246

4347

4448
# Usage
@@ -64,6 +68,8 @@ At this moment, the supported tools are:
6468
* [Php Stan](https://github.com/phpstan/phpstan)
6569
* [Composer - Security Check Plugin](https://github.com/funkjedi/composer-plugin-security-check)
6670

71+
But you can set your [own script](https://github.com/Wtyd/githooks/wiki/Console%20Commands#Hook) on any git hook.
72+
6773
# Set the Configuration File
6874
The `githooks.yml` file is splitted on three parts:
6975

@@ -137,7 +143,7 @@ Many of the options are *optional* as long as the tool has a properly establishe
137143
</p>
138144
139145
# Contributing
140-
Contributions from others would be very much appreciated! Send pull [request](https://github.com/Wtyd/githooks/pulls)/[issue](https://github.com/Wtyd/githooks/issues). Check all steps for do that at Wiki section for [Contributing](https://github.com/Wtyd/githooks/wiki). Thanks!
146+
Contributions from others would be very much appreciated! Send pull [request](https://github.com/Wtyd/githooks/pulls)/[issue](https://github.com/Wtyd/githooks/issues). Check all steps for do that at Wiki section for [Contributing](https://github.com/Wtyd/githooks/wiki/Contributing). Thanks!
141147
142148
# License
143149
The MIT License (MIT). Please see [License File](/LICENSE) for more information.

composer.json

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"keywords": [
66
"git",
77
"githooks",
8+
"hooks",
89
"precommit",
910
"pre-commit",
1011
"commit",
@@ -57,10 +58,5 @@
5758
"illuminate/container": "^5.0 | ^6.0 | ^7.0 | ^8.0",
5859
"illuminate/events": "^5.0 | ^6.0 | ^7.0 | ^8.0",
5960
"symfony/yaml": "^3.0 | ^4.0 | ^5.0"
60-
},
61-
"scripts": {
62-
"post-install-cmd": [
63-
"@php composer dumpautoload --ansi"
64-
]
6561
}
6662
}

0 commit comments

Comments
 (0)