From de5e6e666945a8708bb3df48ac309e6d0d691e74 Mon Sep 17 00:00:00 2001 From: Reedy Date: Sun, 23 Jul 2017 01:28:43 +0100 Subject: [PATCH] phpcs.xml: Escape . in exclude-pattern And fix errors in a file that was previously being excluded. Bug: T129664 Change-Id: I60161b4037ca122ccd2f0730a4b4aa59d878e459 --- phpcs.xml | 8 ++++---- tests/phpunit/includes/GitInfoTest.php | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/phpcs.xml b/phpcs.xml index 92a218a1bb..8cab639a3b 100644 --- a/phpcs.xml +++ b/phpcs.xml @@ -50,8 +50,8 @@ vendor/ ^extensions/ ^skins/ - .git - AdminSettings.php - LocalSettings.php - StartProfiler.php + \.git + AdminSettings\.php + LocalSettings\.php + StartProfiler\.php diff --git a/tests/phpunit/includes/GitInfoTest.php b/tests/phpunit/includes/GitInfoTest.php index 89416f2ff2..ae858f5d5e 100644 --- a/tests/phpunit/includes/GitInfoTest.php +++ b/tests/phpunit/includes/GitInfoTest.php @@ -23,7 +23,7 @@ class GitInfoTest extends MediaWikiTestCase { public function testValidJsonData() { global $IP; - $this->assertValidGitInfo( new GitInfo( "$IP/testValidJsonData") ); + $this->assertValidGitInfo( new GitInfo( "$IP/testValidJsonData" ) ); $this->assertValidGitInfo( new GitInfo( __DIR__ . "/../data/gitinfo/extension" ) ); } -- 2.20.1