Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 1 addition & 7 deletions tests/php/test_php-lint.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,7 @@ public function test_php_lint() {
'./_inc/class.jetpack-provision.php',
'./_inc/lib/debugger/debug-functions-for-php53.php',
);

if ( version_compare( PHP_VERSION, '5.6', '<=' ) ) {

// PHP 5.6 linting fails in packages folder, so we are ignoring it.
$exclude_paths[] = './packages';
}


// use -prune to prevent traversal of that path.
// use -print0 and read -d '' to support filenames containing funny characters.
$find = 'find . -path ' . join( ' -prune -o -path ', array_map( 'escapeshellarg', $exclude_paths ) ) . " -prune -o -name '*.php' -print0";
Expand Down