---
name: perl-critic
description: "Use when adopting Perl::Critic to assess this standard: Enforce selected Perl policies"
---

# Apply Perl::Critic

Define the profiles and severity levels the project supports. Review each reported policy violation in context and document narrowly scoped exceptions.

## Procedure

1. Inspect the repository configuration and identify the files or targets covered by Perl::Critic.
2. Use Perl::Critic in this repository to meet this standard: Enforce selected Perl policies. Define the profiles and severity levels the project supports. Review each reported policy violation in context and document narrowly scoped exceptions. Inspect the repository configuration, record the baseline and exact reproduction steps, then add the smallest repeatable check that detects a regression.
3. Record the tool version, configuration, scope and findings. Explain any checks that could not run.
4. Use the same invocation after changes and compare the evidence against the baseline.

Refer to [the upstream documentation](https://metacpan.org/pod/Perl::Critic) for configuration and prerequisites.
