Subject: | Selecting files to check with PerlCritic |
Currently Test::Perl::Critic plugin calls all_critic_ok function, which checks all the files under blib (or lib) directory. There are two problems:
1. I have an automatically generated module (by Inline::C), which is out of my control. That module fails PerlCritic test. I would like to *exclude* it from checking, but it is not possible.
2. I would like to check *my* test scripts. Test scripts written in Perl and I do not see reason not to check them with PerlCritic. But checking test scripts and modules is also not possible. (BTW, I would like to check *my* hand-made tests, not tests generated by various Dist::Zilla plugins.)
Thus, I think there should be ability to *select* files to check.