Skip to content

Commit b28a957

Browse files
committed
Move from local_codechecker to moodle-cs
This commit simply, performs the move by changing the composer requirements and changing paths to point to the new vendor directories. That's all. TODO: Prospect about to stop using PHP_CodeSniffer as library and just use the binaries. That should make things easier. (see next commit)
1 parent b88bd4c commit b28a957

File tree

6 files changed

+340
-101
lines changed

6 files changed

+340
-101
lines changed

composer.json

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -36,18 +36,6 @@
3636
"docs": "https://moodlehq.github.io/moodle-plugin-ci/"
3737
},
3838
"repositories": [
39-
{
40-
"type": "package",
41-
"package": {
42-
"name": "moodlehq/moodle-local_codechecker",
43-
"version": "3.1.0",
44-
"source": {
45-
"url": "https://github.com/moodlehq/moodle-local_codechecker.git",
46-
"type": "git",
47-
"reference": "v3.1.0"
48-
}
49-
}
50-
},
5139
{
5240
"type": "package",
5341
"package": {
@@ -75,7 +63,7 @@
7563
],
7664
"require": {
7765
"php": ">=7.0.8",
78-
"moodlehq/moodle-local_codechecker": "^3.1",
66+
"moodlehq/moodle-cs": "^3.2.3",
7967
"moodlehq/moodle-local_ci": "^1.0.12",
8068
"moodlehq/moodle-local_moodlecheck": "^1.0.9",
8169
"sebastian/phpcpd": "^3.0",
@@ -101,6 +89,9 @@
10189
"config": {
10290
"platform": {
10391
"php": "7.0.8"
92+
},
93+
"allow-plugins": {
94+
"dealerdirect/phpcodesniffer-composer-installer": true
10495
}
10596
},
10697
"autoload": {
@@ -121,7 +112,6 @@
121112
"post-update-cmd": "@local-ci-install",
122113
"post-create-project-cmd": "@local-ci-install",
123114
"local-ci-install": [
124-
"@composer remove --no-update --working-dir=vendor/moodlehq/moodle-local_ci squizlabs/php_codesniffer",
125115
"@composer update --prefer-dist --optimize-autoloader --working-dir=vendor/moodlehq/moodle-local_ci",
126116
"cd vendor/moodlehq/moodle-local_ci && npm install --no-progress"
127117
]

0 commit comments

Comments
 (0)