Skip to content

natanlao/perl-critic-action

Use this GitHub Action with your project

Add this Action to an existing workflow or create a new one.

View on Marketplace
develop
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code
This branch is 12 commits ahead, 1 commit behind JaSei:master.

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Perl::Critic GitHub Action

What it does

Runs Perl::Critic using Docker and outputs annotations. You can tweak what to criticize in your .perltidyrc.

Example usage

GitHub Actions

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

Locally

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.

Options

input.files

Space-separated list of files to examine. If not provided, defaults to all Perl files in the current directory.

Acknowledgements

Forked from JaSei/docker-perl_critic.