Skip to content

Adopt linecheck for per-file line-count enforcement - #62

Merged
tupe12334 merged 2 commits into
mainfrom
adopt-linecheck
Jul 21, 2026
Merged

tupe12334 merged 2 commits into
mainfrom
adopt-linecheck

Conversation

@tupe12334

Copy link
Copy Markdown
Member

Closes #61

Adds linecheck to this repo.

  • linecheck.yml: rule for **/*.rs — warn at 200 lines, error at 2000. Error threshold starts high because several existing files (src/storage.rs 1370, src/config.rs 475, src/frontmatter.rs 454, src/reconcile.rs 363) already exceed the tool's standard 400-line default; erroring at 400 would fail CI immediately on pre-existing code. Warn still surfaces those files so they get addressed over time.
  • .github/workflows/ci.yml: new linecheck job (installs via cargo install linecheck, runs linecheck .), matching the style of the existing fmt/clippy/test/build jobs.

Verified locally: linecheck . exits 0 (warnings only, no errors) against current main.

Adds linecheck.yml (warn 200 / error 2000 for **/*.rs — error threshold
kept high since existing files like storage.rs already exceed a
standard 400-line default) and a linecheck CI job matching the
existing fmt/clippy/test job style.

Closes #61
@tupe12334
tupe12334 merged commit 61ee398 into main Jul 21, 2026
8 checks passed
@tupe12334
tupe12334 deleted the adopt-linecheck branch July 21, 2026 00:53
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.

Adopt linecheck for per-file line-count enforcement

1 participant