Skip to content

Commit

Permalink
Use perlcritic wrapper and plugins from common repo
Browse files Browse the repository at this point in the history
Also create a github workflow for it

Issue: https://progress.opensuse.org/issues/155188
  • Loading branch information
perlpunk committed Aug 13, 2024
1 parent d13bdfa commit af154c0
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 42 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/perl-critic.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
name: 'Perl critic'

on: [push, pull_request]

jobs:
perl-critic-checks:
runs-on: ubuntu-latest
name: "Perlcritic"
container:
image: perldocker/perl-tester
steps:
- uses: actions/checkout@v4
- run: make test-critic
9 changes: 0 additions & 9 deletions .perlcriticrc

This file was deleted.

1 change: 1 addition & 0 deletions .perlcriticrc
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ endif

.PHONY: test-critic
test-critic:
PERL5LIB=lib/perlcritic:$$PERL5LIB perlcritic lib
tools/perlcritic lib

.PHONY: test-tidy-compile
test-tidy-compile:
Expand Down
32 changes: 0 additions & 32 deletions lib/perlcritic/Perl/Critic/Policy/HashKeyQuotes.pm

This file was deleted.

1 change: 1 addition & 0 deletions tools/perlcritic

0 comments on commit af154c0

Please sign in to comment.