Runs Perl::Critic using Docker and outputs annotations. You can tweak what to criticize in your .perltidyrc.
In your workflow file:
on: [push]
jobs:
critic:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Run Perl::Critic
uses: natanlao/perl-critic-action@v1.1
with:
files: critic
If you wanted to, you could run the image that backs this Action locally:
$ docker run -v $PWD:/tmp/workspace ghcr.io/natanlao/critic:latest
Files and directories can be specified as arguments. No arguments implies the current directory.
Space-separated list of files to examine. If not provided, defaults to all Perl files in the current directory.
Forked from JaSei/docker-perl_critic.