From: Shawn M Moore Date: Tue, 28 Apr 2009 09:11:32 +0000 (-0400) Subject: Add the warning elsewhere too why not X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=ea5503e8f423d3bf2c8d1fcd97c6b1f45a71a1cf;p=gitmo%2FPerl-Critic-Dynamic-Moose.git Add the warning elsewhere too why not --- diff --git a/lib/Perl/Critic/Dynamic/Moose.pod b/lib/Perl/Critic/Dynamic/Moose.pod index baffdf5..af70989 100644 --- a/lib/Perl/Critic/Dynamic/Moose.pod +++ b/lib/Perl/Critic/Dynamic/Moose.pod @@ -4,6 +4,21 @@ Perl::Critic::Dynamic::Moose +=head1 DESCRIPTION + +=head1 WARNING + +B Most L Policies (including all the ones that +ship with Perl::Critic> use pure static analysis -- they never compile nor +execute any of the code that they analyze. However, this policy is very +different. It actually attempts to compile your code and then compares the +subroutines mentioned in your code to those found in the symbol table. +Therefore you should B use this Policy on any code that you do not trust, +or may have undesirable side-effects at compile-time (such as connecting to the +network or mutating files). + +For this Policy to work, all the modules included in your code must be +installed locally, and must compile without error. =head1 AUTHOR Shawn M Moore, C diff --git a/lib/Perl/Critic/Policy/DynamicMoose.pm b/lib/Perl/Critic/Policy/DynamicMoose.pm index 147bef4..f70e783 100644 --- a/lib/Perl/Critic/Policy/DynamicMoose.pm +++ b/lib/Perl/Critic/Policy/DynamicMoose.pm @@ -111,6 +111,20 @@ Prohibit public builder methods for attributes. [Severity: 3] =back +=head1 WARNING + +B Most L Policies (including all the ones that +ship with Perl::Critic> use pure static analysis -- they never compile nor +execute any of the code that they analyze. However, this policy is very +different. It actually attempts to compile your code and then compares the +subroutines mentioned in your code to those found in the symbol table. +Therefore you should B use this Policy on any code that you do not trust, +or may have undesirable side-effects at compile-time (such as connecting to the +network or mutating files). + +For this Policy to work, all the modules included in your code must be +installed locally, and must compile without error. + =head1 AUTHOR Shawn M Moore, C