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

Add Perltidy test in xt (related to #319)

- Add cpanfile, specifying dependencies for running the xt tests
  (authors tests, not installation tests)
parent b11d1659
...@@ -58,7 +58,8 @@ noinst_SCRIPTS = \ ...@@ -58,7 +58,8 @@ noinst_SCRIPTS = \
xt/fixme.t \ xt/fixme.t \
xt/fixme-todo.t \ xt/fixme-todo.t \
xt/pod-coverage.t \ xt/pod-coverage.t \
xt/pod-spelling.t xt/pod-spelling.t \
xt/perltidy.t
EXTRA_DIST = \ EXTRA_DIST = \
AUTHORS.md \ AUTHORS.md \
......
on 'develop' => sub {
requires 'Test::Fixme';
requires 'Test::PerlTidy';
};
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
-cti=0 # No extra indentation for closing brackets -cti=0 # No extra indentation for closing brackets
-i=4 # Indent level is 4 cols -i=4 # Indent level is 4 cols
-ci=4 # Continuation indent is 4 cols -ci=4 # Continuation indent is 4 cols
-l=78 # Max line witdh is 78 cols -l=78 # Max line width is 78 cols
-nolc # Don't outdent long comments (* -olc) -nolc # Don't outdent long comments (* -olc)
-nolq # Don't outdent long quoted strings -nolq # Don't outdent long quoted strings
-nsbl # No opening sub brace on new line (* -sbl) -nsbl # No opening sub brace on new line (* -sbl)
......
use strict;
use warnings;
use Test::PerlTidy;
use FindBin qw($Bin);
run_tests(
path => "$Bin/../src/",
perltidyrc => "$Bin/../doc/dot.perltidyrc"
);
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