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

prisma-risk / tsoracle / 26242562641
95%

Build:
DEFAULT BRANCH: main
Ran 21 May 2026 05:38PM UTC
Jobs 1
Files 44
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

21 May 2026 05:35PM UTC coverage: 94.897% (-0.06%) from 94.959%
26242562641

push

github

web-flow
chore(hooks): auto-install pre-commit hook via husky-rs (#35)

Switches the tracked pre-commit hook from a `make install-hooks`-only
opt-in to auto-install via husky-rs. Motivated by #34, where a missed
fmt check landed on CI because the hook was never enabled on a fresh
worktree.

- Renames `.githooks/` to `.husky/` (the directory husky-rs hardcodes).
- Adds `husky-rs = "0.3"` to `workspace.dependencies` and takes it as a
  `[dev-dependencies]` on `tsoracle-core`. Its build script sets
  `core.hooksPath = .husky` for this clone on the first `cargo test`
  (any flavor — workspace-wide, or `-p tsoracle-core`), after which
  git reads `.husky/pre-commit` directly on every commit. Edits to the
  script are picked up immediately; no copy step.
- Updates `make install-hooks` to set `core.hooksPath = .husky` so the
  manual path stays aligned with the auto-install path (still useful
  for clones that haven't run cargo yet).
- Updates the hook script's own comment header and CONTRIBUTING.md.

Chose husky-rs over cargo-husky (effectively abandoned since 2020, with
a known issue where user-hook content updates don't propagate until the
cargo-husky crate itself bumps version) and over a custom build.rs
(would need copy-on-build with content-hash detection, Windows-
conditional code, and re-installs on every build instead of fire-once).

husky-rs has zero transitive deps (std-only) so the supply-chain
footprint is one new Cargo.lock entry. No code of ours depends on it at
runtime; it lives entirely in a build script of tsoracle-core's
test-only crate graph.

4612 of 4860 relevant lines covered (94.9%)

116108.8 hits per line

Coverage Regressions

Lines Coverage ∆ File
3
73.49
-1.81% crates/tsoracle-server/src/server.rs
Jobs
ID Job ID Ran Files Coverage
1 26242562641.1 21 May 2026 05:38PM UTC 44
94.9
GitHub Action Run
Source Files on build 26242562641
  • Tree
  • List 44
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #26242562641
  • 2414488a on github
  • Prev Build on main (#26241541035)
  • Next Build on main (#26243919946)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc