Login
Added tags support.
[gknop/Perl-Critic.git] / README.developer
CommitLineData
b672fd9e
CD
1Steps for adding a new Policy:
2
8de08c2e
CD
3 * Create tests in t/20_policies_[category].t
4 * Create the .pm in lib/Perl/Critic/Policy/[category]/[name].pm
b672fd9e 5 * If it will be a default policy:
7d2c51b1 6 - Add it to lib/Perl/Critic/Config.pm in native_policies()
b672fd9e
CD
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
8de08c2e 11 * Add it to MANIFEST (via "Build manifest")
ba619093 12 * Add it to the POD in lib/Perl/Critic/PolicySummary.pod
b672fd9e 13 * Mention it in Changes
62927d12
CD
14 * svn add lib/Perl/Critic/Policy/[category]/[name].pm
15 * svn propset svn:keyword "HeadURL Author Revision Date" lib/Perl/Critic/Policy/[category]/[name].pm
fc1186f9
CD
16
17 * Remove from TODO