Skip to content
This repository was archived by the owner on Oct 20, 2024. It is now read-only.
Open
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
7 changes: 6 additions & 1 deletion wp-phptidy.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,8 @@
$command = $value;
continue;
}
// @todo Add exclusion files here
// build $files_excludes
if ( substr( $value, 0, 1 )=="-" ) {
$options[] = $value;
} else {
Expand Down Expand Up @@ -196,7 +198,10 @@
}
}

// File excludes from config file
// File excludes from config file, allow command override
if ( count( $files_excludes ) )
$project_files_excludes = $files_excludes;

foreach ( $project_files_excludes as $file_exclude ) {
if (
( $key = array_search( $file_exclude, $files ) ) !== false
Expand Down