chore: add .perltidyrc and tidy all .pm files - #207
Draft
toddr-bot wants to merge 1 commit into
Draft
Conversation
CLAUDE.md references .perltidyrc but the file was never committed. Add a config matching the existing code style and apply it to all lib/**/*.pm files. Changes are whitespace-only: continuation indent normalization, long-line wrapping, and paren spacing.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Add the
.perltidyrcreferenced in CLAUDE.md and apply it to alllib/**/*.pmfiles.Why
CLAUDE.md states "a .perltidyrc file exists in the base of the repo and we enforce tidiness
in any .pm file" but the file was never committed. This creates the config and enforces it
on the existing code so the convention is real, not aspirational.
How
Config:
-l=120 -i=4 -ci=4 -nce -pt=1 -sbt=1 -bt=1 -nsfs— chosen to match the existingcode style with minimal diff. Changes are whitespace-only: continuation indent normalization,
long-line wrapping of the
our (...)declaration, and paren spacing consistency.The file is already in MANIFEST.SKIP so it won't ship in the CPAN tarball.
Testing
Full test suite passes. Perltidy is idempotent on all four .pm files after the change.
Quality Report
Changes: 5 files changed, 27 insertions(+), 13 deletions(-)
Code scan: clean
Tests: passed (OK)
Branch hygiene: clean
Generated by Kōan