From: Reedy Date: Sun, 23 Jul 2017 00:28:43 +0000 (+0100) Subject: phpcs.xml: Escape . in exclude-pattern X-Git-Tag: 1.31.0-rc.0~2634 X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=commitdiff_plain;h=de5e6e666945a8708bb3df48ac309e6d0d691e74 phpcs.xml: Escape . in exclude-pattern And fix errors in a file that was previously being excluded. Bug: T129664 Change-Id: I60161b4037ca122ccd2f0730a4b4aa59d878e459 --- 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" ) ); }