Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- "--verbose N | FORMAT"
- Sets the verbosity level or format for reporting violations. If given
- a number ("N"), "perlcritic" reports violations using one of the
- predefined formats described below. If given a string ("FORMAT"), it
- is interpreted to be an actual format specification. If the
- "--verbose" option is not specified, it defaults to either 4 or 5,
- depending on whether multiple files were given as arguments to
- "perlcritic". You can set the default value for this option in your
- .perlcriticrc file.
- Verbosity Format Specification
- ----------- -------------------------------------------------------
- 1 "%f:%l:%c:%m\n",
- 2 "%f: (%l:%c) %m\n",
- 3 "%m at %f line %l\n",
- 4 "%m at line %l, column %c. %e. (Severity: %s)\n",
- 5 "%f: %m at line %l, column %c. %e. (Severity: %s)\n",
- 6 "%m at line %l, near '%r'. (Severity: %s)\n",
- 7 "%f: %m at line %l near '%r'. (Severity: %s)\n",
- 8 "[%p] %m at line %l, column %c. (Severity: %s)\n",
- 9 "[%p] %m at line %l, near '%r'. (Severity: %s)\n",
- 10 "%m at line %l, column %c.\n %p (Severity: %s)\n%d\n",
- 11 "%m at line %l, near '%r'.\n %p (Severity: %s)\n%d\n"
- Formats are a combination of literal and escape characters similar to
- the way "sprintf" works. See String::Format for a full explanation of
- the formatting capabilities. Valid escape characters are:
- Escape Meaning
- ------- ------------------------------------------------------------
- %c Column number where the violation occurred
- %d Full diagnostic discussion of the violation
- %e Explanation of violation or page numbers in PBP
- %F Just the name of the file where the violation occurred.
- %f Path to the file where the violation occurred.
- %l Line number where the violation occurred
- %m Brief description of the violation
- %P Full name of the Policy module that created the violation
- %p Name of the Policy without the Perl::Critic::Policy:: prefix
- %r The string of source code that caused the violation
- %C The class of the PPI::Element that caused the violation
- %s The severity level of the violation
- The purpose of these formats is to provide some compatibility with
- text editors that have an interface for parsing certain kinds of
- input. See "EDITOR INTEGRATION" for more information about that.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement