Unverified Commit ec8d60e4 authored by Luc Didry's avatar Luc Didry
Browse files

Use tidyall to ease tidying files

- Code::TidyAll added as develop requirement in cpanfile
- Add tidyall target to Makefile.am (to run it with the good options
  without pain)
- Add dot/dot.tidyallrc
- Add t/ and xt/ to perltidy test
parent 7f206f4f
......@@ -73,3 +73,7 @@ Makefile
# ctags
tags
ctags
# TidyAll
/.tidyall.d
/doc/.tidyall.d
......@@ -201,3 +201,5 @@ uninstall-hook:
dist-hook:
$(MAKE) check
tidyall:
tidyall --conf-file doc/dot.tidyallrc --root-dir . -r src t xt
......@@ -290,4 +290,5 @@ on 'develop' => sub {
requires 'Test::Fixme';
requires 'Test::PerlTidy';
requires 'Perl::Tidy', '== 20180220';
requires 'Code::TidyAll';
};
[PerlTidy]
select = **/*.{pm,t,pl.in,pm.in,fcgi.in}
argv = -pro=doc/dot.perltidyrc
......@@ -5,6 +5,12 @@ use Test::PerlTidy;
use FindBin qw($Bin);
run_tests(
path => "$Bin/../src/",
perltidyrc => "$Bin/../doc/dot.perltidyrc"
path => "$Bin/../",
perltidyrc => "$Bin/../doc/dot.perltidyrc",
exclude => [
"$Bin/../autom4te.cache/", "$Bin/../ext/",
"$Bin/../default/", "$Bin/../doc/",
"$Bin/../ext/", "$Bin/../po/",
"$Bin/../www/"
]
);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment