06 Mar 2006 18:20:41 UTC
- Distribution: Module-Checkstyle
- Source (raw)
- Browse (raw)
- How to Contribute
- Issues (2)
- Testers (6 / 499 / 0)
- KwaliteeBus factor: 0
- 83.54% Coverage
- License: unknown
- Activity24 month
- Download (24.1KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest versionCLAESJAC Claes Jakobsson
Module::Checkstyle::Check::Subroutine - Checks length, naming etc. of named subroutines
- Subroutine name
Checks that a subroutine is named correctly. Use matches-name to specify a regular expression that must match.
matches-name = qr/\w+/
- Subroutine length
Checks that named subroutines doesn't exceed a specified length. Use max-length to specify the maximum number of lines a subroutine may be.
max-length = 40
- No declaration of subroutines with a fully qualified name
Checks if a subroutine is declared with a fully qualified name. That if it contains :: or '. Set no-fully-qualified-names to a true value to enable.
no-fully-qualified-names = true
- Calling subroutines with ampersand
Checks if a subroutine is called with an ampersand (like Perl4). This check ignores calls with ampersand to functions where there are no arguments to honor shared @_. Set no-calling-with-ampersand to a true value to enable.
no-calling-with-ampersand = true
Writing configuration files. "Format" in Module::Checkstyle::Config
Module Install Instructions
To install Module::Checkstyle, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell install Module::Checkstyle
For more information on module installation, please visit the detailed CPAN module installation guide.