Skip to content

Commit 48910ee

Browse files
committed
Add phpcs/phpcbf with Moodle standard and pre-commit hook
1 parent a414c45 commit 48910ee

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
.test_enrolments_state.json
22
.apitest_state.json
3+
/vendor/
4+
composer.lock

composer.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"require-dev": {
3+
"moodlehq/moodle-cs": "^3.7"
4+
},
5+
"config": {
6+
"allow-plugins": {
7+
"dealerdirect/phpcodesniffer-composer-installer": true
8+
}
9+
}
10+
}

0 commit comments

Comments
 (0)