Skip to content

Commit 817ade6

Browse files
committed
Merge branch 'feature/validate-pear-package-minor-tweaks' of https://github.com/jrfnl/PHP_CodeSniffer
2 parents 21781de + 86766b4 commit 817ade6

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

scripts/ValidatePEAR/ValidatePEARPackageXML.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ public function validate()
101101
*/
102102
protected function checkContents()
103103
{
104-
echo 'Checking Contents tag'.PHP_EOL;
104+
echo PHP_EOL.'Checking Contents tag'.PHP_EOL;
105105
echo '====================='.PHP_EOL;
106106

107107
$valid = true;
@@ -129,7 +129,7 @@ protected function checkContents()
129129
$testsFiles = (new FileList(
130130
$this->projectRoot.'tests/',
131131
$this->projectRoot,
132-
'`\.(css|inc|js|php)$`Di'
132+
'`\.(css|inc|js|php|xml)$`Di'
133133
))->getList();
134134
$files = array_merge($srcFiles, $testsFiles);
135135

@@ -256,7 +256,7 @@ protected function checkFileTag($tag, $currentDirectory='')
256256
*/
257257
protected function checkPHPRelease()
258258
{
259-
echo 'Checking PHPRelease tags'.PHP_EOL;
259+
echo PHP_EOL.'Checking PHPRelease tags'.PHP_EOL;
260260
echo '========================'.PHP_EOL;
261261

262262
$valid = true;
@@ -298,7 +298,7 @@ protected function checkPHPRelease()
298298
}
299299

300300
// Check validity of the tags for files in the tests root subdirectories.
301-
if (preg_match('`^tests/.+\.(php|inc)$`', $name) === 1
301+
if (preg_match('`^tests/.+\.(php|inc|js|css|xml)$`', $name) === 1
302302
&& $as === str_replace('tests/', 'CodeSniffer/', $name)
303303
) {
304304
continue;
@@ -319,7 +319,7 @@ protected function checkPHPRelease()
319319
* Verify that all files in the `tests` directory are listed in both `<phprelease>` tags.
320320
*/
321321

322-
$testFiles = (new FileList($this->projectRoot.'tests/', $this->projectRoot, '`\.(inc|php)$`Di'))->getList();
322+
$testFiles = (new FileList($this->projectRoot.'tests/', $this->projectRoot, '`\.(inc|php|js|css|xml)$`Di'))->getList();
323323

324324
foreach ($testFiles as $file) {
325325
foreach ($listedFiles as $key => $listed) {

0 commit comments

Comments
 (0)