Skip to content

Commit

Permalink
sonarqube upd
Browse files Browse the repository at this point in the history
  • Loading branch information
rostilos committed May 27, 2024
1 parent 8e80b45 commit 5160509
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion sonar-project.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
sonar.projectKey=magento2
sonar.projectKey=magento2test
16 changes: 16 additions & 0 deletions test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
printf '#!/bin/bash
if [ -z "$1" ]
then
analyse_path="app/code/Magento/Developer/Console/Command/DiInfoCommand.php"
else
analyse_path="$1"
fi
if [ -z "$2" ]
then
level=0
else
level=$2
fi
vendor/bin/phpcs $analyse_path --standard=Magento2
vendor/bin/phpmd $analyse_path text dev/tests/static/testsuite/Magento/Test/Php/_files/phpmd/ruleset.xml
vendor/bin/phpstan analyse $analyse_path --level=$level\n' > analyse

0 comments on commit 5160509

Please sign in to comment.