-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml.dist
78 lines (74 loc) · 2.91 KB
/
.pre-commit-config.yaml.dist
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
##################################################################################
#
# PHP Lockpick
# Helps accessing protected/private members/consts of foreign objects
#
# @author Marcin Orlowski <mail (#) marcinOrlowski (.) com>
# @copyright 2014-2024 Marcin Orlowski
# @license http://www.opensource.org/licenses/mit-license.php MIT
# @link https://github.com/MarcinOrlowski/php-lockpick
#
##################################################################################
#
# See https://pre-commit.com for more information about pre-commit.
# See https://pre-commit.com/hooks.html for more available hooks.
#
##############################################################################
#
# Using pre-commit hooks #
#
# To improve quality of your commit, it's recommended to use "pre-commit" (http://pre-commit.com)
# hooks, that will block your commits unless all tests pass. This project comes with template
# configuration file `.pre-commit-config.yaml.dist`.
#
# Brief installation instruction:
#
# * Ensure you got Python installed
# * Install pre-commit: `pip install pre-commit`
# * Go to your Logisim-evolution source code root directory
# * Copy provided config file template: `cp .pre-commit-config.yaml.dist .pre-commit-config.yaml`
# * Plug hooks into Git pipeline: `pre-commit install`
#
# See `pre-commit` official installation docs too: https://pre-commit.com/#install
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
# Prevent giant files from being committed
- id: check-added-large-files
args: [ '--maxkb=1555550' ]
# This hook checks yaml files for parseable syntax
- id: check-yaml
# Check for files that would conflict in case-insensitive filesystems
- id: check-case-conflict
# Ensures that (non-binary) executables have a shebang.
- id: check-executables-have-shebangs
# Check for files that contain merge conflict strings
- id: check-merge-conflict
# Prevent addition of new git submodules
- id: forbid-new-submodules
# Replaces or checks mixed line ending
- id: mixed-line-ending
args: [ '--fix=no' ]
- repo: https://github.com/jumanjihouse/pre-commit-hooks
rev: 3.0.0
hooks:
# Non-executable shell script filename ends in .sh
- id: script-must-have-extension
- repo: https://github.com/MarcinOrlowski/pre-commit-hooks
rev: 1.3.1
hooks:
# This hook trims trailing whitespace.
- id: trailing-whitespaces
exclude_types: ['xml','png','jpeg','svg']
args: [ '--markdown-linebreak-ext=md', '--fix=yes' ]
# Ensures that a file is either empty, or ends with one newline
- id: end-of-file
exclude_types: ['xml','png','jpeg','svg']
args: [ '--fix=yes' ]
- repo: https://github.com/digitalpulp/pre-commit-php.git
rev: 1.4.0
hooks:
# Runs PHPStan analyser
- id: php-stan
files: \.(php)$