-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.pre-commit-hooks.yaml
More file actions
63 lines (63 loc) · 2.13 KB
/
.pre-commit-hooks.yaml
File metadata and controls
63 lines (63 loc) · 2.13 KB
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# Check Xml using Xsd
- id: magento-xml
name: Check Xml using Xsd
description: Validates the XML file against the specified XSD file.
entry: magento-xml
language: python
types: [xml]
additional_dependencies: [lxml]
# PHP Code Sniffer
- id: magento-phpcs
name: PHP Code Sniffer
description: PHP Code Sniffer provides the mechanism of checking code compliance with specific coding standard.
entry: magento-phpcs
language: python
# PHP Mess Detector
- id: magento-phpmd
name: PHP Mess Detector
description: PHP Mess Detector provides a diverse set of pre defined rules to detect code smells and possible errors within the analyzed source code.
entry: magento-phpmd
language: python
types: [php]
# PHP Static Analysis Tool
- id: magento-phpstan
name: PHP Static Analysis Tool
description: PHP Static Analysis Tool finds bugs in your codebase by inspecting the source files.
entry: magento-phpstan
language: python
types: [php]
# PHP Copy/Paste Detector
- id: magento-phpcpd
name: PHP Copy Paste Detector
description: PHP Copy Paste Detector finds duplicate code in PHP files.
entry: magento-phpcpd
language: python
pass_filenames: false
always_run: true
# PHPUnit test
- id: magento-phpunit
name: PHP Unit test
description: Automatically run PHPUnit tests.
entry: magento-phpunit
language: python
pass_filenames: false
always_run: true
args: ["-c=dev/tests/unit/phpunit.xml"]
# REST API PHPUnit test
- id: magento-webapi-rest-phpunit
name: REST API PHP Unit test
description: Automatically run REST API PHPUnit tests.
entry: magento-webapi-rest-phpunit
language: python
pass_filenames: false
always_run: true
args: ["--type=Api", "-c=dev/tests/api-functional/phpunit_rest.xml"]
# SOAP API PHPUnit test
- id: magento-webapi-soap-phpunit
name: SOAP API PHP Unit test
description: Automatically run SOAP API PHPUnit tests.
entry: magento-webapi-soap-phpunit
language: python
pass_filenames: false
always_run: true
args: ["--type=Api", "-c=dev/tests/api-functional/phpunit_soap.xml"]