Skip to content

Add precious lint tooling and tidy the codebase#88

Merged
oalders merged 3 commits into
masterfrom
precious-lint-config
May 16, 2026
Merged

Add precious lint tooling and tidy the codebase#88
oalders merged 3 commits into
masterfrom
precious-lint-config

Conversation

@oalders
Copy link
Copy Markdown
Member

@oalders oalders commented May 16, 2026

Sets up precious as the
project's lint/tidy runner. Two commits:

  1. Add precious lint config, CI job, and pre-commit hook

    • precious.toml — canonical command set: perltidy, perlvars,
      and omegasort for .gitignore.
    • .github/workflows/lint.yml — a lint job that runs
      precious lint --all.
    • scripts/pre-commit — runs precious lint --staged on commit and
      blocks direct commits to master. Contributors run
      scripts/pre-commit --init once per clone to install it.
  2. Tidy entire codebase with precious tidy --all — whitespace and
    formatting only, applied with the existing .perltidyrc profile. No
    functional changes.

🤖 Generated with Claude Code

@codecov
Copy link
Copy Markdown

codecov Bot commented May 16, 2026

Codecov Report

❌ Patch coverage is 30.00000% with 7 lines in your changes missing coverage. Please review.
✅ Project coverage is 8.57%. Comparing base (c69cdd0) to head (6d2658a).

Files with missing lines Patch % Lines
lib/HTTP/Daemon.pm 30.00% 7 Missing ⚠️
Additional details and impacted files
@@          Coverage Diff           @@
##           master     #88   +/-   ##
======================================
  Coverage    8.57%   8.57%           
======================================
  Files           1       1           
  Lines         338     338           
  Branches       86      86           
======================================
  Hits           29      29           
  Misses        304     304           
  Partials        5       5           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@oalders oalders force-pushed the precious-lint-config branch 2 times, most recently from a8dc414 to 401a0c5 Compare May 16, 2026 02:09
oalders and others added 2 commits May 16, 2026 02:11
precious.toml defines the canonical lint/tidy command set (perltidy,
perlvars, omegasort). The lint CI job runs `precious lint --all`.
scripts/pre-commit runs `precious lint --staged` on commit and blocks
direct commits to master; contributors run `scripts/pre-commit --init`
once per clone to symlink it into .git/hooks/pre-commit.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Whitespace and formatting only, applied by `precious tidy --all` using
the .perltidyrc profile. No functional changes.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@oalders oalders force-pushed the precious-lint-config branch from 401a0c5 to 6d2658a Compare May 16, 2026 02:11
macOS no longer tests Perl 5.14-5.22. On Windows those versions were
already commented out (shogo82148/actions-setup-perl#223); drop the
dead entries along with the now-stale note.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@oalders oalders merged commit 6bef134 into master May 16, 2026
2 checks passed
@oalders oalders deleted the precious-lint-config branch May 16, 2026 03:38
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