Login
svn merge -r 2029:2018 ProhibitNegativeExpressionsInUnlessAndUntilConditions.run.PL
[gknop/Perl-Critic.git] / README.developer
CommitLineData
68a933bc
ES
1Naming standard: Things that are distribution-private (as opposed to class/package-private)
2begin with double underscore.
3
b672fd9e
CD
4Steps for adding a new Policy:
5
ed2cc500 6 * Create tests in t/[category]/[name].run
8de08c2e 7 * Create the .pm in lib/Perl/Critic/Policy/[category]/[name].pm
2e0f1c94
ES
8 * Ensure the files are in the MANIFEST so that t/00_modules.t can find them.
9 Add it to MANIFEST via "./Build manifest".
68a933bc
ES
10 * If it applies_to() PPI::Document, perhaps add an exception in
11 t/03_pragmas.t
12 * Add it to the POD in lib/Perl/Critic/PolicySummary.pod. You'll
13 need to put it in the correct alphabetical order, or you'll get a
14 failure in t/13_bundled_policies.t
b672fd9e 15 * Mention it in Changes
68a933bc
ES
16 * svn add t/[category]/[name].run lib/Perl/Critic/Policy/[category]/[name].pm
17 * svn propset svn:keywords 'URL Author Revision Date' t/[category]/[name].run lib/Perl/Critic/Policy/[category]/[name].pm
fc1186f9
CD
18
19 * Remove from TODO