-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Even when passed a list of files to run against, honor the list of ignored files, since the list of files being passed may be generated and not user-supplied. Fixes #33
- Loading branch information
Showing
4 changed files
with
37 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?php | ||
|
||
/** | ||
* Ignored file. | ||
*/ | ||
|
||
function do_some_things() { | ||
|
||
global $wpdb; | ||
|
||
return $wpdb->get_results( 'SELECT * FROM ' . $wpdb->posts ); | ||
} | ||
|
||
function do_some_other_stuff() { | ||
|
||
echo 'Hello world'; | ||
echo 'Dlrow olleh'; | ||
} | ||
|
||
function display_message() { | ||
|
||
_e( 'Message', 'textdomain' ); | ||
func_to_ignore( 'yes' ); | ||
} | ||
|
||
class AClass { | ||
protected $ignored = 'parent'; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters