# perlcritic

[**perlcritic**](https://metacpan.org/pod/Perl::Critic) is a linter for Perl.

You can enable the perlcritic linter with:

```shell
trunk check enable perlcritic
```

## Auto Enabling

perlcritic will be auto-enabled if a `.perlcriticrc` config file is present.

## Settings

perlcritic supports the following config files:

* `.perlcriticrc`

You can move these files to `.trunk/configs` and `trunk check` will still find them. See [Moving Linters](https://docs.trunk.io/code-quality/overview/configure-linters#moving-linters) for more info. Trunk Code Quality provides a default `.perlcriticrc` if your project does not already have one.

## Links

* [perlcritic site](https://metacpan.org/pod/Perl::Critic)
* perlcritic Trunk Code Quality [integration source](https://github.com/trunk-io/plugins/tree/main/linters/perlcritic)
* Trunk Code Quality's [open source plugins repo](https://github.com/trunk-io/plugins/tree/main)
