bessarabov / Test-Whitespaces

test source code for errors in whitespaces
4 stars 0 forks source link

Think about ignoring explicity specified files. #16

Open bessarabov opened 11 years ago

bessarabov commented 11 years ago

There is an option "ignore":

cat t_failing/default.t 
use Test::Whitespaces {
    files => [qw(
        samples_with_whitespaces_errors/Bar.pm
        samples_with_whitespaces_errors/Bar2.pm
    )],
    ignore => [
        qr/Bar2/,
    ],
};

This script will test only the Bar.pm file. I'm not sure that it is correct to ignore files that are explicitly specified. Maybe this option should work only with dirs (or maybe the behaviour should be left without change).