GitHub Action for Perl Critic
ActionsThis 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.
GITHUB_TOKEN- Optional. If added, this action will post Perl Critic violations as a comment on your commit/PR.
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.plTo 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/*.plThe 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.
