-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathMakefile
25 lines (20 loc) · 1.19 KB
/
Makefile
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
# set default target which is executed when no explicit target is provided on the cli
.DEFAULT_GOAL := default
.PHONY: default
default:
# do nothing
.PHONY: check
check: checkquality checkstyle
.PHONY: checkstyle
checkstyle:
vendor-bin/php-cs-fixer/vendor/bin/php-cs-fixer fix --dry-run --diff --stop-on-violation --allow-risky=yes
vendor-bin/phpcs/vendor/bin/phpcs -s --standard=Magento2 --exclude=Magento2.Commenting.ClassPropertyPHPDocFormatting,Magento2.Annotation.MethodAnnotationStructure,Magento2.Annotation.MethodArguments --ignore=./vendor/,./vendor-bin/ .
vendor-bin/phpcs/vendor/bin/phpcs -s --standard=PHPCompatibility --runtime-set testVersion 7.3- --ignore=./vendor/,./vendor-bin/ .
vendor/bin/composer normalize --dry-run
.PHONY: checkquality
checkquality:
vendor-bin/phpstan/vendor/bin/phpstan analyse
xmllint --noout etc/di.xml
xmllint --noout --schema vendor/magento/framework/Module/etc/module.xsd etc/module.xml
xmllint --noout --schema vendor/magento/module-config/etc/system_file.xsd etc/adminhtml/system.xml
xmllint --noout --schema vendor/magento/module-store/etc/config.xsd etc/config.xml