Repository navigation
Open
Labels
cloud-poolQueued for a cloud pool session
Description
Where
- quality/tiers/perlcritic/strict.perlcriticrc:1-6: severity 1, drops
RequireTidyCodeonly. standard: severity 3. - quality/adapter/src/commands.rs:262-267: with no bound config,
--noprofile --severity=5. - quality/tools.bzl:1730-1748: perlcritic, no
severity(). docs/cli/commands/quality.md:422. - perl/rules/defs.bzl:67: no interpreter warning flags. perl/tools/perlcritic_smoke_test.sh:7 uses severity 5.
Fix
Guard rules (do first):
TestingAndDebugging::RequireUseStrict,RequireUseWarnings,ProhibitNoStrict,ProhibitNoWarnings(allow_with_category_restriction = 1).BuiltinFunctions::ProhibitStringyEval,InputOutput::RequireCheckedSyscalls(functions = :builtins),RequireCheckedOpen,RequireCheckedClose,ProhibitTwoArgOpen,ProhibitBarewordFileHandles,Subroutines::ProhibitExplicitReturnUndef.Miscellanea::ProhibitUselessNoCritic,ProhibitUnrestrictedNoCritic. Adapter check:## no critic (Policy)needs a reason.- Adapter check:
use warnings FATAL => 'all'.
Then:
- Default is severity 1 with this drop list:
CodeLayout::RequireTidyCode,RequireTrailingCommas,ProhibitParensWithBuiltins,ValuesAndExpressions::ProhibitMagicNumbers,RequireNumberSeparators,ProhibitNoisyQuotes,ProhibitEmptyQuotes,ProhibitInterpolationOfLiterals,RequireInterpolationOfMetachars,ProhibitConstantPragma,ControlStructures::ProhibitPostfixControls,RegularExpressions::RequireExtendedFormatting,RequireDotMatchAnything,RequireLineBoundaryMatching,Documentation::RequirePodSections,RequirePodAtEnd,Modules::RequireVersionVar,ProhibitMultiplePackages,Subroutines::RequireArgUnpacking. - Use it when no config is bound (commands.rs:262-267). Update the smoke test.
- perlcritic
severity()map. Update quality.md:422.
Excluded
ErrorHandling::RequireCarping, ProhibitExcessComplexity thresholds, RequireUseUTF8, and the drop list above.
Test
- Negative fixture per guard (no
use strict, string eval, uncheckedopen, two-arg open, bareword handle,return undef, bare## no critic) failsdx lint. - commands_tests.rs:1673 argv for the default profile.
- Clean fixture passes.
tier = "standard"still passes.
Verify every rule ID and flag against the pinned tool version before landing; some come from memory.
Part of #14647
Metadata
Metadata
Assignees
Labels
cloud-poolQueued for a cloud pool session
Activity
TrapsterDK commentedon Nov 22, 2026
Paths in this issue are from an old layout. Branch from origin/main; quality code is in core/quality/, wrappers in /private/. Rebase on #14647 (strict default) and #14685 (severity floor).
Related: #14691 makes perlcritic a default linter.
🤖 Generated with Claude Code
TrapsterDK commentedon Nov 22, 2026
cloud-claim bebd684c
Generated by Claude Code
TrapsterDK commentedon Nov 22, 2026
Next slice: #14711 (on the train) lands the strict tier drop list, the
ProhibitNoWarningsandRequireCheckedSyscallsparameters and guard fixtures in the perlcritic smoke test. Left: the adapter checks (## no critic (Policy)needs a reason;use warnings FATAL => 'all') need the shared agent-guard hook from #14647; the unbound-config path inperlcritic_check(commands.rsPERLCRITIC_DEFAULT_ARGS, still--noprofile --severity=5) and its argv test should switch to the strict profile.Generated by Claude Code
perl: strict perlcritic tier drops noise policies and sets guard para…
TrapsterDK commentedon Nov 23, 2026
cloud-claim 4225d8f7
Generated by Claude Code
TrapsterDK commentedon Nov 23, 2026
Next slice: #14727 (on the train) removes the severity 5
--noprofilefallback, so perlcritic always runs the bound tier profile. What's left is the adapter guard:## no critic (Policy)must give a reason, anduse warnings FATAL => 'all'should be checked. It can be aperl_guard.rsincore/quality/adapter, wired likezig_guard.rsfrom #14715, with negative fixtures for each case.Generated by Claude Code
perl: perlcritic always runs the bound tier profile (part of #14683)
perl: perlcritic always runs the bound tier profile (part of #14683) (#…