Login
Add new policy Variables::ProhibitMatchVars
[gknop/Perl-Critic.git] / README.developer
CommitLineData
b672fd9e
CD
1Steps for adding a new Policy:
2
3 * Create tests in t/20_policies_*.t
4 * Create the .pm in lib/Perl/Critic/Policy/[category]/
5 * If it will be a default policy:
6 - Add it to lib/Perl/Critic/Policy.pm in native_policies()
7 - Add it to t/samples/perlcriticrc.all
8 - Add it to t/samples/perlcriticrc.levels
9 - Add it to t/samples/perlcriticrc.none
10 - Add 9 to the number of tests in t/00_modules.t
11 * Add it to MANIFEST
12 * Add it to the POD in lib/Perl/Critic.pm
13 * Add it to the POD in bin/perlcritic
14 * Mention it in Changes