Adding SOME USEFULL COMMAND

This commit is contained in:
Emmanuel ROY 2021-06-18 17:44:11 +02:00
parent 7a3cf99bea
commit d8075c803b

View file

@ -1,27 +1,3 @@
# PHP METRICS
#composer global require 'phpmetrics/phpmetrics'
phpmetrics --report-html=./data/phpmetrics ./ --exclude="vendor","build","tests","data","console/skel","application/modules","application/include/vues/cache"
# PHP DOCUMENTOR
php ./build/bin/phpDocumentor.phar -d ./application -d ./console/ -d ./domain --ignore "vendor/*,build/*,data/*,tests/*,console/skel/*,application/modules/*,application/inculde/vues/cache/*" -t ./data/api-docs/
# PHP MESS DETECTOR
php ./build/bin/phpmd.phar ./ html codesize,design,naming,unusedcode --exclude '*vendor*' --exclude '*tests*' --exclude '*build*' --exclude '*data*' --exclude '*skel*' --exclude '*modules*' --exclude '*cache*' > data/phpmd.html
# CHARTS OF PROJECTS
./build/bin/pdepend --jdepend-chart=data/jdepend-chart.svg --overview-pyramid=data/jdepend-overview.svg --summary-xml=data/jdepend-summary.xml --ignore=vendor,tests,build,data,console/skel,application/modules,application/inculde/vues/cache ./
# TEXT METRIC OF PROJECT
php ./build/bin/phploc-7.0.2.phar ./ --exclude ./vendor --exclude ./build --exclude ./tests --exclude ./data --exclude ./console/skel --exclude ./application/modules --exclude ./application/include/vues/cache > data/phploc.txt
# DUPLICATED LINES OF PROJECT
php ./build/bin/phpcpd-6.0.3.phar --exclude ./vendor --exclude ./build --exclude ./build --exclude ./data --exclude ./console/skel --exclude ./application/modules --exclude ./application/include/vues/cache ./ > data/phpcpd.txt
# DEAD CODE DETECTOR
php ./build/bin/phpdcd-1.0.2.phar --exclude="./vendor" --exclude="./build" --exclude="./build" --exclude="./data" --exclude="./console/skel" --exclude="./application/modules" --exclude="./application/include/vues/cache" --recursive ./ > data/phpdcd.txt
# BEHAT Behavior Driven Developpement Initialisation
#cd tests/behat
#./bin/behat --init
@ -29,14 +5,9 @@ php ./build/bin/phpdcd-1.0.2.phar --exclude="./vendor" --exclude="./build" --exc
# PHPUNIT Testing
./tests/phpunit/bin/phpunit ./test/phpunit/tests/Tests.php
# GENERATION OF DOCUMENTATION BOOK
php ./data/book sand print
# OBFUSCATION DU CODE (not working at all)
#git clone https://github.com/pk-fr/yakpro-po.git
#cd yakpro-po
@ -44,3 +15,10 @@ php ./data/book sand print
#chmod a+x yakpro-po.php
php ./yakpro-po/yakpro-po.php --no-shuffle-statements --no-obfuscate-namespace-name --no-obfuscate-class-name --no-obfuscate-method-name --no-obfuscate-property-name --no-obfuscate-constant-name --no-obfuscate-string-literal --no-strip-indentation './MyAwesomeProjectDirectory' -o './MyAwesomeObfuscatedProjectDirectory'
#GIT USEFULL COMMAND
##1
git filter-branch --index-filter 'git rm --cached --ignore-unmatch **/????????MY_DIRECTORY??????/** '
##2
git fetch --all
git reset --hard origin/master