From e7ce780f6edf07fc697e1a2142dafddf2be74630 Mon Sep 17 00:00:00 2001 From: wpsmith Date: Fri, 15 Feb 2013 09:27:23 -0500 Subject: [PATCH] Beginning to add exclude command First pass. --- wp-phptidy.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/wp-phptidy.php b/wp-phptidy.php index 41018cf..f636d9f 100755 --- a/wp-phptidy.php +++ b/wp-phptidy.php @@ -135,6 +135,8 @@ $command = $value; continue; } + // @todo Add exclusion files here + // build $files_excludes if ( substr( $value, 0, 1 )=="-" ) { $options[] = $value; } else { @@ -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