From 558d69c31633a474a0cc3da67dffb9dec412800a Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sun, 4 Apr 2021 17:10:51 +0200 Subject: [PATCH] many fixes and expands and module expansions --- Config/phpcs.xml | 2 +- Config/phpstan.neon | 1 + Helper/testreport.sh | 2 +- Tools/versionHash.sh | 14 ++++++++++++++ 4 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 Tools/versionHash.sh diff --git a/Config/phpcs.xml b/Config/phpcs.xml index 4dd5f84..3d956ce 100755 --- a/Config/phpcs.xml +++ b/Config/phpcs.xml @@ -35,7 +35,7 @@ - + *Sort.php diff --git a/Config/phpstan.neon b/Config/phpstan.neon index 7466f6d..b92ad07 100755 --- a/Config/phpstan.neon +++ b/Config/phpstan.neon @@ -52,6 +52,7 @@ parameters: - '#^Offset .* does not exist on array.*#' - '#.*unserialize\(\) has parameter .* with no typehint specified#' - '#.*refClass with generic class ReflectionClass but does not specify its types.*#' + - '#.*class Mpdf\\.*#' - message: '#.*has parameter \$con with no typehint specified#' path: *Ftp/File.php diff --git a/Helper/testreport.sh b/Helper/testreport.sh index 63faaaa..91595ae 100644 --- a/Helper/testreport.sh +++ b/Helper/testreport.sh @@ -12,4 +12,4 @@ php phpcs.phar ./ --standard="Build/Config/phpcs.xml" -s --report-junit=Build/te sed -i '/^$/d' Build/test/phpstan.json sed -i '/^Warning: /d' Build/test/phpstan.json -php ../TestReportGenerator/src/index.php -b /home/spl1nes/Orange-Management -l /home/spl1nes/Orange-Management/Build/Config/reportLang.php -c /home/spl1nes/Orange-Management/tests/coverage.xml -s /home/spl1nes/Orange-Management/Build/test/junit_phpcs.xml -a /home/spl1nes/Orange-Management/Build/test/phpstan.json -u /home/spl1nes/Orange-Management/Build/test/junit_php.xml -d /home/spl1nes/Orange-Management/Build/test/ReportExternal --version 1.0.0 \ No newline at end of file +#php ../TestReportGenerator/src/index.php -b /home/spl1nes/Orange-Management -l /home/spl1nes/Orange-Management/Build/Config/reportLang.php -c /home/spl1nes/Orange-Management/tests/coverage.xml -s /home/spl1nes/Orange-Management/Build/test/junit_phpcs.xml -a /home/spl1nes/Orange-Management/Build/test/phpstan.json -u /home/spl1nes/Orange-Management/Build/test/junit_php.xml -d /home/spl1nes/Orange-Management/Build/test/ReportExternal --version 1.0.0 \ No newline at end of file diff --git a/Tools/versionHash.sh b/Tools/versionHash.sh new file mode 100644 index 0000000..3ae7032 --- /dev/null +++ b/Tools/versionHash.sh @@ -0,0 +1,14 @@ +#!/bin/bash + +find ./phpOMS -type f -name "*.php" -exec md5sum {} \; > hashs.txt +find ./cssOMS -type f -name "*.css" -exec md5sum {} \; >> hashs.txt +find ./cssOMS -type f -name "*.scss" -exec md5sum {} \; >> hashs.txt +find ./jsOMS -type f -name "*.js" -exec md5sum {} \; >> hashs.txt +find ./Modules -type f -name "*.php" -exec md5sum {} \; >> hashs.txt +find ./Modules -type f -name "*.js" -exec md5sum {} \; >> hashs.txt +find ./Model -type f -name "*.php" -exec md5sum {} \; >> hashs.txt +find ./Model -type f -name "*.js" -exec md5sum {} \; >> hashs.txt +find ./Web -type f -name "*.php" -exec md5sum {} \; >> hashs.txt +find ./Web -type f -name "*.js" -exec md5sum {} \; >> hashs.txt +find ./Developer-Guide -type f -name "*.md" -exec md5sum {} \; >> hashs.txt +find ./Documentation -type f -name "*.md" -exec md5sum {} \; >> hashs.txt