Skip to content

Commit 6f0774b

Browse files
committed
MQE-431: Automatically check for copyright at the top of every framework file
- Add composer-git-hooks dependency
1 parent abf8b23 commit 6f0774b

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ vendor/*
44
.env
55
_generated
66
AcceptanceTester.php
7+
cghooks.lock

composer.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,17 @@
1111
},
1212
"require-dev": {
1313
"squizlabs/php_codesniffer": "1.5.3",
14-
"sebastian/phpcpd": "~3.0"
14+
"sebastian/phpcpd": "~3.0",
15+
"brainmaestro/composer-git-hooks": "^2.3"
1516
},
1617
"autoload": {
1718
"psr-4": {
1819
"Magento\\FunctionalTestingFramework\\": ["src/Magento/FunctionalTestingFramework"]
1920
}
21+
},
22+
"extra": {
23+
"hooks": {
24+
"pre-push": "bin/copyright-check"
25+
}
2026
}
2127
}

0 commit comments

Comments
 (0)