Skip to content
This repository was archived by the owner on Jan 8, 2024. It is now read-only.

Commit 7687bf1

Browse files
committed
Fine-grained scrutinizer config
1 parent 2a62461 commit 7687bf1

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.scrutinizer.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ before_commands:
22
- "composer install --no-dev --prefer-source"
33

44
filter:
5-
excluded_paths: ["bin/*", "docs/*", "examples/*", "var/*", "vendor/*"]
5+
excluded_paths: ["bin/*", "Docs/*", "examples/*", "tests/*", "var/*", "vendor/*"]
66
checks:
77
php: true
88
coding_style:

tests/SyntaxChecker.test.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,11 @@ function read_dir($dir, $ext = null)
3838
/**
3939
* @todo Make the exclusions much cleaner
4040
*/
41-
if (strpos($file, '/vendor/composer') === false && strpos($file, '/vendor/symfony') === false && strpos($file, '/bin/stubs') === false) {
41+
if (strpos($file, '/vendor/composer') === false
42+
&& strpos($file, '/vendor/symfony') === false
43+
&& strpos($file, '/vendor/doctrine') === false
44+
&& strpos($file, '/bin/stubs') === false
45+
) {
4246
exec('php -l "' . $file . '"', $output, $status);
4347
} else {
4448
echo '[SKIP] ' . $file;

0 commit comments

Comments
 (0)