Skip to content
Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Latest commit

 

History

15 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Run Perl Critic on your codebase.

Resources

Stars

7 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages