-
Notifications
You must be signed in to change notification settings - Fork 132
/
Copy pathstatic-checks
executable file
·30 lines (24 loc) · 1.17 KB
/
static-checks
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Copyright © Magento, Inc. All rights reserved.
# See COPYING.txt for license details.
## REMEMBER TO UPDATE THE .BAT FILE
set -e
echo "==============================="
echo " CODE SNIFFER"
echo "==============================="
vendor/bin/phpcs ./src --standard=./dev/tests/static/Magento --ignore=src/Magento/FunctionalTestingFramework/Group,src/Magento/FunctionalTestingFramework/AcceptanceTester.php
vendor/bin/phpcs ./dev/tests/unit --standard=./dev/tests/static/Magento
vendor/bin/phpcs ./dev/tests/verification --standard=./dev/tests/static/Magento --ignore=dev/tests/verification/_generated
echo ""
echo "==============================="
echo " COPY PASTE DETECTOR"
echo "==============================="
echo "==============================="
echo " MESS DETECTOR"
echo "==============================="
vendor/bin/phpmd ./src text /dev/tests/static/Magento/CodeMessDetector/ruleset.xml --exclude _generated,src/Magento/FunctionalTestingFramework/Group,src/Magento/FunctionalTestingFramework/AcceptanceTester.php
echo ""
echo "==============================="
echo " MAGENTO COPYRIGHT CHECK"
echo "==============================="
bin/copyright-check
echo ""