From d8075c803bcf60a3beb670f9f8cd997e4a339de5 Mon Sep 17 00:00:00 2001 From: Emmanuel ROY Date: Fri, 18 Jun 2021 17:44:11 +0200 Subject: [PATCH] Adding SOME USEFULL COMMAND --- command_usefull | 36 +++++++----------------------------- 1 file changed, 7 insertions(+), 29 deletions(-) diff --git a/command_usefull b/command_usefull index f1aeff8..4edb585 100644 --- a/command_usefull +++ b/command_usefull @@ -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 \ No newline at end of file