Conversation
|
I normally run tools/1_pc.pl from the top level (where .perlcriticrc lives). It already uses level 4 with exclusion of certain common need-to-be-dealt-with messages. How do your changes affect that? I've never done anything with t/author-critic.t because it's always been skipped. I haven't looked at whether I can set an environment variable like AUTHOR_TESTING in Windows. |
|
This test (author-critic.t) is functionally a subset of tools/1_pc.pl, so I have decided not to pull it. I did go in and update where it finds the configuration file ( |
|
I completely understand that you prefer to run the author tests with I think it is worthwhile criticising all the code - if the code isn't good, surely it's not worth having? |
|
All code is criticized by 1_pc.pl, so that box is checked. Note that at severity 4, it gets a lot of "nuisance" warnings that should be dealt with some day, but I just haven't gotten around to it. For now, they're just filtered out so they don't clutter up the report and make it easy to overlook something serious. I try to fix the simple (or serious) stuff when it shows up. Given that for a typical (non-developer) install, contrib/, examples/, and tools/ won't be installed anyway, I don't find author-critic.t to be all that useful. 1_pc.pl is a superset of its abilities, and I run 1_pc.pl before final tests and packaging up for CPAN. I'll leave author-critic.t in the t-tests in case someone wants to enable AUTHOR_TESTING and run it, but otherwise I don't intend to pursue the matter. Just remember to change the SEVERITY setting from 5 to 4 if you want to do anything serious with author-critic.t. |
|
See also #77, which refers to ssimms/pdfapi2#15 and ssimms/pdfapi2#16. |
|
I went ahead and bumped up the severity setting to 4, as tools/1_pc.pl doesn't use this file. |
|
An-n-n-n-nd... I had to set SEVERITY back to 5, because something in test.yaml's lint testing is using .perlcriticrc, and blowing up badly at SEVERITY 4. :-( |
Let's standardize the Perl Critic tests, put the resource file where it can be found, and then turn up the severity.