Start checking PRs with perlcritic
[?]
Aug 19, 2021, 8:13 PM
BJIR6VCGO3J5FEUEMVA7RGIRIDZYSH6ZBYAZSC2FZZ24QDL7APXQCDependencies
- [2]
IRZYSVNOtests: delete set-up.pl / tear-down.pl - [3]
2JJP7673tests: move to t, allow `yath test` from root - [4]
UBUZPF7JNote in README how to run a single test - [5]
LA5L7JCUREADME.md: info about runHydra/foreman - [6]
43CQEJTEREADME.md update - [7]
TOTCBKRUREADME: update with instructions on running tests - [*]
CLXEECMF* Start putting build results in a database. - [*]
NVMDS7GEAdd README.md - [*]
G2ZB6464first test, not yet in buildprocess
Change contents
- file addition: .perlcriticrc[9.2]
theme = community# 5 is the least complainy, 1 is the most complainyseverity = 5 - replacement in README.md at line 109
### Running Tests### Checking your patches - replacement in README.md at line 111
After making your changes, verify the test suite still passes. After following the steps in [Development Environment](#development-environment), run:After making your changes, verify the test suite passes and perlcritic is still happy. - replacement in README.md at line 113
```Start by following the steps in [Development Environment](#development-environment).Then, you can run the tests and the perlcritic linter together with:```console - replacement in README.md at line 120
$ # Or, to run a single test, use:```You can run a single test with:```$ nix-shell - edit in README.md at line 127
```And you can run just perlcritic with: - edit in README.md at line 132
$ nix-shell$ make perlcritic``` - edit in t/Makefile.am at line 26[11.103][2.0]
perlcritic.pl \ - file addition: perlcritic.pl[3.697]
#!/usr/bin/env perluse strict;use warnings;use Cwd 'abs_path';use File::Basename;my $dirname = abs_path(dirname(__FILE__) . "/..");print STDERR "Executing perlcritic against $dirname\n";chdir($dirname) or die "Failed to enter $dirname\n";exec("perlcritic", ".") or die "Failed to execute perlcritic.";