Skip to content

Commit

Permalink
feat(CNR): add session communication support, subuser view, minor cle…
Browse files Browse the repository at this point in the history
…anup and phpstan improvements
  • Loading branch information
KaiSchwarz-cnic committed Sep 16, 2024
1 parent a1a792e commit a0ae8ae
Show file tree
Hide file tree
Showing 5 changed files with 761 additions and 1,419 deletions.
18 changes: 17 additions & 1 deletion .github/hooks/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ echo -e "\n"
echo -e "\033[1mAnalysing files using PHPStan...\033[0m"
echo ""

vendor/bin/phpstan analyse -c .github/linters/phpstan.neon
composer run-script phpstan
if [[ $? -ne 0 ]]; then
echo "PHPStan analysis failed. Commit aborted."
echo -e "\n"
Expand All @@ -18,6 +18,22 @@ if [[ $? -ne 0 ]]; then
exit 1
fi

echo -e "\n"
echo -e "\033[1mAnalysing files using CodeSniffer...\033[0m"
echo ""

composer run-script lint
if [[ $? -ne 0 ]]; then
echo "CodeSniffer analysis failed. Commit aborted."
echo -e "\n"

# show current file path
echo -e "\033[1mPre-commit checks were executed by ${current_full_path}.\033[0m"
echo -e "\n"

exit 1
fi

# show current file path
echo -e "\033[1mPre-commit checks were executed by ${current_full_path}.\033[0m"
echo -e "\n"
Expand Down
Loading

0 comments on commit a0ae8ae

Please sign in to comment.