Search results for "module:Perl::Critic::Policy::Modules::RequireFilenameMatchesPackage"

Perl::Critic::Policy::Modules::RequireFilenameMatchesPackage - Package declaration must match filename. River stage three • 131 direct dependents • 386 total dependents

The package declaration should always match the name of the file that contains it. For example, "package Foo::Bar;" should be in a file called "Bar.pm". This makes it easier for developers to figure out which file a symbol comes from when they see it...

PETDANCE/Perl-Critic-1.142 - 29 Nov 2022 02:20:23 UTC

Perl::Critic - Critique Perl source code for best-practices. River stage three • 131 direct dependents • 386 total dependents

Perl::Critic is an extensible framework for creating and applying coding standards to Perl source code. Essentially, it is a static source code analysis engine. Perl::Critic is distributed with a number of Perl::Critic::Policy modules that attempt to...

PETDANCE/Perl-Critic-1.142 - 29 Nov 2022 02:20:23 UTC

Perl::Critic::Config - The final derived Perl::Critic configuration, combined from any profile file and command-line parameters. River stage three • 131 direct dependents • 386 total dependents

Perl::Critic::Config takes care of finding and processing user-preferences for Perl::Critic. The Config object defines which Policy modules will be loaded into the Perl::Critic engine and how they should be configured. You should never really need to...

PETDANCE/Perl-Critic-1.142 - 29 Nov 2022 02:20:23 UTC

Perl::Critic::TestUtils - Utility functions for testing new Policies. River stage three • 131 direct dependents • 386 total dependents

This module is used by Perl::Critic only for self-testing. It provides a few handy subroutines for testing new Perl::Critic::Policy modules. Look at the test programs that ship with Perl::Critic for more examples of how to use these subroutines....

PETDANCE/Perl-Critic-1.142 - 29 Nov 2022 02:20:23 UTC

Perl::Critic::Policy::Community::PackageMatchesFilename - Module files should declare a package matching the filename River stage one • 8 direct dependents • 9 total dependents

Perl modules are normally loaded by "require" (possibly via "use" or "no"). When given a module name, "require" will translate this into a filename and then load whatever that file contains. The file doesn't need to actually contain a package matchin...

DBOOK/Perl-Critic-Community-v1.0.3 - 24 Jul 2022 06:28:31 UTC

Perl::Critic::Policy::Subroutines::ProhibitCallsToUnexportedSubs River stage two • 7 direct dependents • 13 total dependents

Many Perl modules define their public interface by exporting subroutines via Exporter. The goal of this Policy is to enforce encapsulation by by prohibiting calls to subroutines that are not listed in the callee's @EXPORT or @EXPORT_OK....

PETDANCE/Perl-Critic-StricterSubs-0.06 - 26 Apr 2022 03:43:51 UTC
6 results (0.114 seconds)