Skip to content

Add advisory perlcritic config and CI#91

Open
tomjn wants to merge 1 commit into
Yaribz:masterfrom
tomjn:feature/perlcritic
Open

Add advisory perlcritic config and CI#91
tomjn wants to merge 1 commit into
Yaribz:masterfrom
tomjn:feature/perlcritic

Conversation

@tomjn

@tomjn tomjn commented Jun 22, 2026

Copy link
Copy Markdown

What

  • .perlcriticrc: a deliberately lenient starting policy (severity 5 only).
  • .github/workflows/perlcritic.yml: a GitHub Actions job that runs perlcritic
    over src/, marked continue-on-error so it is advisory and never fails the
    build
    .

Why

Adds a static-analysis signal without imposing a wall of findings on a codebase
that has not previously been linted. perlcritic uses PPI (static parsing) so it
needs none of the runtime/sibling dependencies. The intent is to start gentle and
tighten the severity threshold (and drop continue-on-error) over time as
findings are triaged.

Honest caveat

perlcritic was not available in my environment, so I could not run it against
the tree locally — the config and workflow are standard but the actual findings
(and the exact severity that produces a useful, non-noisy result) should be
confirmed from the first CI run. Starting advisory means a surprising result
can't break anything.

Adds a lenient .perlcriticrc (severity 5 only, to start) and a GitHub Actions
job that runs perlcritic over src/. The job is marked continue-on-error so it is
advisory and never fails the build, since this codebase has not previously been
linted; the severity threshold and the non-blocking flag can be tightened over
time as findings are triaged.

perlcritic was not available in my environment, so the CI step itself is
unverified locally; the config and workflow are standard.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant