Skip to content

GitHub Action for Perl Critic

Actions
Run Perl Critic on your codebase
2.1.0
Latest
Star (7)

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.

GitHub Action for Perl Critic is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Run Perl Critic on your codebase
2.1.0
Latest

GitHub Action for Perl Critic is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.