Skip to content

Difegue/action-perlcritic

Use this GitHub Action with your project

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

View on Marketplace
master
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

Latest commit

 

Git stats

Files

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

GitHub Action for Perl Critic

This Action allows you to run Perl Critic on your codebase directly from GitHub.
Errors are reported as annotations on your check runs.

By default, Perl Critic uses a .perlcriticrc file, if it is present in the current directory.
Using the action's args, you can override any settings, as they're passed to perlcritic directly.

Secrets

  • GITHUB_TOKEN - Optional. If added, this action will post Perl Critic violations as a comment on your commit/PR.

Example

To run Perl Critic on the Perl scripts located in ./lib, ./script/*, and ./tools/install.pl:

- name: Perl Critic
      uses: Difegue/action-perlcritic@master
      env:
        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
      with:
          args: ./lib/* ./script/* ./tools/install.pl

To run Perl Critic on the the Perl scripts located in ./cgi with more brutal policies:

- name: Perl Critic
      uses: Difegue/action-perlcritic@master
      env:
        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
      with:
          args: --brutal ./cgi/*.pl

License

The Dockerfile and associated scripts and documentation in this project are released under the MIT License.