Skip to content

Commit 2f88523

Browse files
authored
Merge pull request #117 from stronk7/update_tools
Bump tools dependencies to new, just tagged, ones.
2 parents 1005249 + f653f5b commit 2f88523

File tree

6 files changed

+34
-32
lines changed

6 files changed

+34
-32
lines changed

composer.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -40,44 +40,44 @@
4040
"type": "package",
4141
"package": {
4242
"name": "moodlehq/moodle-local_codechecker",
43-
"version": "3.0.1",
43+
"version": "3.0.2",
4444
"source": {
4545
"url": "https://github.com/moodlehq/moodle-local_codechecker.git",
4646
"type": "git",
47-
"reference": "v3.0.1"
47+
"reference": "v3.0.2"
4848
}
4949
}
5050
},
5151
{
5252
"type": "package",
5353
"package": {
5454
"name": "moodlehq/moodle-local_ci",
55-
"version": "1.0.10",
55+
"version": "1.0.11",
5656
"source": {
5757
"url": "https://github.com/moodlehq/moodle-local_ci.git",
5858
"type": "git",
59-
"reference": "v1.0.10"
59+
"reference": "v1.0.11"
6060
}
6161
}
6262
},
6363
{
6464
"type": "package",
6565
"package": {
6666
"name": "moodlehq/moodle-local_moodlecheck",
67-
"version": "1.0.7",
67+
"version": "1.0.8",
6868
"source": {
6969
"url": "https://github.com/moodlehq/moodle-local_moodlecheck.git",
7070
"type": "git",
71-
"reference": "v1.0.7"
71+
"reference": "v1.0.8"
7272
}
7373
}
7474
}
7575
],
7676
"require": {
7777
"php": ">=7.0.8",
78-
"moodlehq/moodle-local_codechecker": "^3.0.1",
79-
"moodlehq/moodle-local_ci": "^1.0.10",
80-
"moodlehq/moodle-local_moodlecheck": "^1.0.7",
78+
"moodlehq/moodle-local_codechecker": "^3.0.2",
79+
"moodlehq/moodle-local_ci": "^1.0.11",
80+
"moodlehq/moodle-local_moodlecheck": "^1.0.8",
8181
"sebastian/phpcpd": "^3.0",
8282
"phpmd/phpmd": "^2.2",
8383
"symfony/dotenv": "^3.4",

composer.lock

Lines changed: 19 additions & 19 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ The format of this change log follows the advice given at [Keep a CHANGELOG](htt
1515
to use PostgreSQL 10 (Moodle 4.0 new requirement).
1616
- ACTION REQUIRED: Existing integrations running tests with PostgreSQL now need to use version 10 or newer.
1717
- ACTION REQUIRED: Existing integrations running tests with MariaDB must avoid using the 10.6 version and use 10.5 instead. It comes with some changes making it incompatible with Moodle default installation. To achieve that, just look for any use of `image: mariadb:10` and change it to `image: mariadb:10.5`. This is being tracked @ [MDL-72131]( https://tracker.moodle.org/browse/MDL-72131) and, once fixed, it will be possible to go back to the original image.
18+
- Updated project dependencies to current [moodle-local_moodlecheck](https://github.com/moodlehq/moodle-local_moodlecheck) and [moodle-local_ci](https://github.com/moodlehq/moodle-local_ci) versions.
19+
- Updated version of [moodle-local_codechecker](https://github.com/moodlehq/moodle-local_codechecker) to v3.0.2.
1820

1921
## [3.1.0] - 2021-05-14
2022
### Added

tests/Command/CodeCheckerCommandTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public function testExecuteFail()
7676
} elseif (false) {
7777
$var = print_object(); // To verify moodle own sniff.
7878
79-
}
79+
} // No EOL @ EOF on purpose to verify it's detected.
8080
EOT;
8181
$this->fs->dumpFile($this->pluginDir.'/fixable.php', $content);
8282

@@ -88,7 +88,7 @@ public function testExecuteFail()
8888
$output = $this->getActualOutput();
8989
$this->assertRegExp('/E\.* 8\.* \/ 8 \(100%\)/', $output); // Progress.
9090
$this->assertRegExp('/\/fixable.php/', $output); // File.
91-
$this->assertRegExp('/ (4|5) ERRORS AND 2 WARNINGS AFFECTING 5 /', $output); // Summary (php70 shows one less)
91+
$this->assertRegExp('/ (4|5) ERRORS AND 2 WARNINGS AFFECTING 6 /', $output); // Summary (php70 shows one less)
9292
$this->assertRegexp('/moodle\.Files\.BoilerplateComment\.Wrong/', $output); // Moodle sniff.
9393
$this->assertRegexp('/print_object\(\) is forbidden/', $output); // Moodle sniff.
9494
$this->assertRegexp('/FunctionUse\.RemovedFunctions\.ldap_sort/', $output); // PHPCompatibility sniff.

tests/Fixture/moodle-local_ci/classes/math.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,4 @@ public function add($a, $b) {
4545
// Let's add them.
4646
return $a + $b;
4747
}
48-
}
48+
}

tests/Fixture/moodle-local_ci/tests/lib_test.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,4 +73,4 @@ public function test_local_ci_math_class() {
7373
$this->assertEquals(2, $math->add(4, -2));
7474
$this->assertEquals(0, $math->add(-4, 4));
7575
}
76-
}
76+
}

0 commit comments

Comments
 (0)