NAME
Perl::Critic::Policy::Modules::RequireExplicitPackage::ObjectPad - Always make the package/Object::Pad class explicit.
METHOLDS
violates
Please see Perl::Critic::Policy::Modules::RequireExplicitPackage::violates
_replace_class
replace 'use Object::Pad' and 'class XXXX' with `package XXX` in PPI::Document object, to make it be processable by Perl::Critic::Policy::Modules::RequireExplicitPackage::violates
Argument: PPI::Document object Return: cloned PPI::document object
INHERITED METHODS
- Perl::Critic::Policy::Modules::RequireExplicitPackage
-
applies_to, default_maximum_violations_per_document, default_severity, default_themes, prepare_to_scan_document, supported_parameters
- Perl::Critic::Policy
-
add_themes, get_abstract, get_format, get_long_name, get_maximum_violations_per_document, get_parameters, get_raw_abstract, get_severity, get_short_name, get_themes, initialize_if_enabled, is_enabled, is_safe, new, new_parameter_value_exception, parameter_metadata_available, set_format, set_maximum_violations_per_document, set_severity, set_themes, throw_parameter_value_exception, to_string, violation