Skip to content

Commit ce7c9f1

Browse files
committed
Drop unused hooks and translate russian comments
1 parent 47b043a commit ce7c9f1

File tree

18 files changed

+32
-135
lines changed

18 files changed

+32
-135
lines changed

.git_hooks/post-checkout/clear-cache.sh

Lines changed: 0 additions & 12 deletions
This file was deleted.

.git_hooks/post-checkout/install-dependecies.sh

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
#!/bin/bash
22

3-
# В данном хуке выполняется
4-
# - composer install если был изменен composer.lock
5-
# - npm install если был изменен package-lock.json
6-
73
ESC_SEQ="\x1b["
84
COL_RESET=$ESC_SEQ"39;49;00m"
95
COL_RED=$ESC_SEQ"0;31m"

.git_hooks/post-merge/clear-cache.sh

Lines changed: 0 additions & 12 deletions
This file was deleted.

.git_hooks/post-merge/install-dependecies.sh

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
#!/bin/bash
22

3-
# В данном хуке выполняется
4-
# - composer install если был изменен composer.lock
5-
# - npm install если был изменен package-lock.json
6-
73
ESC_SEQ="\x1b["
84
COL_RESET=$ESC_SEQ"39;49;00m"
95
COL_RED=$ESC_SEQ"0;31m"

.git_hooks/pre-commit/lint-openapi.sh

Lines changed: 0 additions & 61 deletions
This file was deleted.

.git_hooks/pre-commit/lint-php.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
#!/bin/bash
22

3-
# В данном хуке выполняется линтинг всех добавленных в коммит php файлов через php -l
4-
53
ROOT_DIR="$(pwd)/"
64
LIST=$(git diff-index --cached --name-only --diff-filter=ACMR HEAD)
75
ERRORS_BUFFER=""

.git_hooks/pre-commit/php-cs-fixer.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
#!/bin/bash
22

3-
# В данном хуке выполняется приведение код-стайла в соответствие с конфигом .php_cs
4-
53
EXECUTABLE_NAME=php-cs-fixer
64
EXECUTABLE_COMMAND=fix
75
CONFIG_FILE=.php_cs

.git_hooks/pre-push/composer-validate.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22

3-
# В данном хуке выполняется валидация composer.json перед коммитом
3+
# validate composer
44

55
ESC_SEQ="\x1b["
66
COL_RESET=$ESC_SEQ"39;49;00m"

.git_hooks/pre-push/var-dump-checker.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
#!/bin/bash
22

3-
# В данном хуке выполняется проверка файлов проекта на dd, var_dump и прочие подобные отладочные функции через var-dump-check
4-
53
ESC_SEQ="\x1b["
64
COL_RESET=$ESC_SEQ"39;49;00m"
75
COL_RED=$ESC_SEQ"0;31m"

.huskyrc.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"hooks": {
3-
"post-checkout": ".git_hooks/post-checkout/install-dependecies.sh && .git_hooks/post-checkout/clear-cache.sh",
4-
"post-merge": ".git_hooks/post-merge/install-dependecies.sh && .git_hooks/post-merge/clear-cache.sh",
5-
"pre-commit": ".git_hooks/pre-commit/lint-php.sh && .git_hooks/pre-commit/php-cs-fixer.sh && .git_hooks/pre-commit/lint-openapi.sh",
3+
"post-checkout": ".git_hooks/post-checkout/install-dependecies.sh",
4+
"post-merge": ".git_hooks/post-merge/install-dependecies.sh",
5+
"pre-commit": ".git_hooks/pre-commit/lint-php.sh && .git_hooks/pre-commit/php-cs-fixer.sh",
66
"pre-push": ".git_hooks/pre-push/composer-validate.sh && .git_hooks/pre-push/var-dump-checker.sh && composer test"
77
}
88
}

0 commit comments

Comments
 (0)