|
3 | 3 | # Lombok PHP - Write less code! |
4 | 4 | # |
5 | 5 | # @author Marcin Orlowski <mail (#) marcinOrlowski (.) com> |
6 | | -# @copyright 2022 Marcin Orlowski |
| 6 | +# @copyright ©2022-2026 Marcin Orlowski |
7 | 7 | # @license https://opensource.org/licenses/LGPL-3.0 LGPL-3.0 |
8 | 8 | # @link https://github.com/MarcinOrlowski/lombok-php |
9 | 9 | # |
|
22 | 22 | # * Ensure you got Python installed |
23 | 23 | # * Install pre-commit: `pip install pre-commit` |
24 | 24 | # * Go to your project source code root directory |
25 | | -# * Copy provided config file template: |
26 | | -# `cp .pre-commit-config.yaml.dist .pre-commit-config.yaml` |
27 | 25 | # * Plug hooks into Git pipeline: `pre-commit install` |
28 | 26 | # |
29 | 27 | # From now on, pre-commit hooks will be triggered on every commit. To temporarily disable them, |
@@ -84,3 +82,33 @@ repos: |
84 | 82 | # Runs PHPStan analyser |
85 | 83 | - id: php-stan |
86 | 84 | files: \.(php)$ |
| 85 | + |
| 86 | + - repo: https://github.com/hukkin/mdformat |
| 87 | + rev: 0.7.22 # Use the ref you want to point at |
| 88 | + hooks: |
| 89 | + - id: mdformat |
| 90 | + # Optionally add plugins |
| 91 | + additional_dependencies: |
| 92 | + - mdformat-gfm |
| 93 | + - mdformat-black |
| 94 | + - |
| 95 | + # https://github.com/pre-commit/pre-commit-hooks |
| 96 | + - repo: https://github.com/pre-commit/pre-commit-hooks |
| 97 | + rev: v5.0.0 # Use the ref you want to point at |
| 98 | + hooks: |
| 99 | + - id: check-executables-have-shebangs |
| 100 | + - id: check-merge-conflict |
| 101 | + - id: check-shebang-scripts-are-executable |
| 102 | + - id: trailing-whitespace |
| 103 | + - id: check-json |
| 104 | + - id: check-yaml |
| 105 | + - id: check-toml |
| 106 | + - id: pretty-format-json |
| 107 | + args: [ '--autofix', '--no-sort-keys' ] |
| 108 | + |
| 109 | + - repo: https://github.com/digitalpulp/pre-commit-php.git |
| 110 | + rev: 1.4.0 |
| 111 | + hooks: |
| 112 | + # Runs PHPStan analyser |
| 113 | + - id: php-stan |
| 114 | + files: \.(php)$ |
0 commit comments