forked from worldmind/perlqual
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
28 lines (25 loc) · 1.07 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
This is set of perl tests for test code quality, if all test passes we know that:
- module have valid syntax and have strict and warnings pragmas
- module have only unix line endings and not have whitespaces in the end of line
- module have no FIXME notes
- module have no soft breakpoints for perl debugger
- module have no tabs
- module is conform to our coding style (=perltidy config)
- module distribution looks good to upload to cpan
- module has portable file names
- code units in module have required cyclomatic complexity and required lines of code
- module code is conform to Perl Best Practice recommendation from Perl::Critic
- module has POD and it is valid
- POD cover all methods
- POD is written on valid human language
- the tests written for module cover needed percent of code
And we can test that module methods have no memory leaks
Using:
git clone https://github.com/worldmind/perl-test-code-quality-template.git
cd perl-test-code-quality-template/
perl Makefile.PL
make
make manifest
make test
# if you make your module based on this you can install it by
make install