commit aeb00f97e47ba7b8c30bb29972ec11788d38085b parent 623da759d14202d6ce8517b1e1fe97395f99eb0a Author: Kyle Milz <kyle@0x30.net> Date: Sat, 31 Dec 2016 12:42:49 -0700 t: add test for trailing whitespace in source Diffstat:
A | t/src_trailingspace.t | | | 15 | +++++++++++++++ |
1 file changed, 15 insertions(+), 0 deletions(-)
diff --git a/t/src_trailingspace.t b/t/src_trailingspace.t @@ -0,0 +1,15 @@ +# +# Test that source files have no trailing whitespace. +# +use Test::More tests => 1; +use Test::TrailingSpace; + +my $finder = Test::TrailingSpace->new( + { + root => '.', + filename_regex => qr/\.(?:t|pm|pl|cc|h|sh)\z/, + }, +); + +# Run test. +$finder->no_trailing_space("No trailing spaces found.");