Skip to content

Commit fba224e

Browse files
authored
Merge pull request #5 from ensi-platform/ensitech-74
ENSITECH-74
2 parents 75d7dec + ffcd367 commit fba224e

33 files changed

+372
-586
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../scripts/install-dependencies.sh
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../scripts/install-dependencies.sh

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

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

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../scripts/lint-php.sh
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../scripts/php-cs-fixer.sh
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../scripts/composer-validate.sh

.git_hooks/pre-push/02-phpstan.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../scripts/phpstan.sh

.git_hooks/pre-push/03-test-code.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../scripts/test-code.sh

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

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

.git_hooks/pre-push/composer-validate.sh renamed to .git_hooks/scripts/composer-validate.sh

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

3-
# validate composer
3+
# Validate composer.json before commit
44

55
ESC_SEQ="\x1b["
66
COL_RESET=$ESC_SEQ"39;49;00m"
77
COL_RED=$ESC_SEQ"0;31m"
88
COL_GREEN=$ESC_SEQ"0;32m"
99
COL_YELLOW=$ESC_SEQ"0;33m"
1010

11-
echo
11+
echo
1212
printf "$COL_YELLOW%s$COL_RESET\n" "Running pre-push hook: \"composer-validate\""
1313

1414
VALID=$(composer validate --strict --no-check-publish --no-check-all | grep "is valid")

0 commit comments

Comments
 (0)