• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

sds / overcommit / 42770188652
100%
master: 91%

Build:
Build:
LAST BUILD BRANCH: main
DEFAULT BRANCH: master
Ran 10 Nov 2026 06:43AM UTC
Jobs 1
Files 224
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

10 Nov 2026 06:41AM UTC coverage: 93.315% (+0.5%) from 92.847%
42770188652

push

github

web-flow
750: Teach ad-hoc hooks line parsing (#757)

Command hooks can now parse file diagnostics through YAML configuration,
enabling Overcommit's existing warning and modified-line handling
without a Ruby plugin.

Closes #750. Implements the requirements and review decisions from that
issue:

- An explicit `message_pattern` Ruby regex enables parsing; a named
`file` capture is required, while `line` and `type` are optional.
- `warning_message_type_pattern` accepts a regex or literal substring;
unmatched or missing types default to errors.
- Commands receive applicable files and respect `include`, `exclude`,
`requires_files`, and `problem_on_unmodified_line`.
- Existing command hooks retain their Git-hook behavior. Only stdout is
parsed; tools using stderr can redirect it in a wrapper, as agreed in
review. Prefiltering and stream-selection options remain outside this
change.

Also fixes regex loading with current Psych versions, prevents failed
commands with empty/blank stdout from passing, validates patterns, and
avoids stale behavior when the same hook name is loaded with different
configuration. Documentation includes the GNU/Emacs-style example and
the failure behavior.

Validation: full local suite passed (1,813 examples); all 37 focused
loader/configuration examples pass, including a real subprocess with
staged files and Windows drive-letter diagnostics. Pre-commit checks and
RuboCop pass. GitHub CI covers Ruby 3.3, 3.4, and 4.0 on Ubuntu and
Windows.

---------

Co-authored-by: Shane da Silva <shane@dasilva.io>

36 of 36 new or added lines in 4 files covered. (100.0%)

3434 of 3680 relevant lines covered (93.32%)

2390.4 hits per line

Jobs
ID Job ID Ran Files Coverage
1 42770188652.1 10 Nov 2026 06:43AM UTC 4032
78.6
GitHub Action Run
Source Files on build 42770188652
  • Tree
  • List 224
  • Changed 173
  • Source Changed 4
  • Coverage Changed 173
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #42770188652
  • 344aafc2 on github
  • Prev Build on main (#42767965538)
  • Next Build on main (#42772037897)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc