SPEC.md and ARCHITECTURE.md were sitting at the repo root alongside Cargo.toml/Makefile.toml/packages.d — moved both into docs/ (doubleo7 already does this for its own supplementary docs, so this matches an existing convention in the fleet rather than inventing a new one). Updated every doc-comment cross-reference across src/*.rs and Makefile.toml (23 references) to the new docs/SPEC.md / docs/ ARCHITECTURE.md paths. The two files' own cross-references to each other didn't need changing — they're still same-directory relative references. Also updated the project reference memory pointing at ARCHITECTURE.md's location, so it doesn't go stale pointing at a path that no longer exists. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
63 lines
2 KiB
TOML
63 lines
2 KiB
TOML
[config]
|
|
default_to_workspace = false
|
|
|
|
[tasks.format]
|
|
command = "cargo"
|
|
args = ["fmt"]
|
|
|
|
[tasks.format-check]
|
|
command = "cargo"
|
|
args = ["fmt", "--check"]
|
|
|
|
[tasks.lint]
|
|
command = "cargo"
|
|
args = ["clippy", "--all-targets", "--", "-D", "warnings"]
|
|
|
|
# Cognitive complexity (clippy's nursery lint, not literal cyclomatic
|
|
# complexity — see clippy.toml for why) on the bin target only: run without
|
|
# --all-targets so #[cfg(test)] code, which naturally reads as more
|
|
# "complex" without being a maintainability signal, isn't gated on this.
|
|
[tasks.complexity]
|
|
command = "cargo"
|
|
args = ["clippy", "--bins", "--", "-D", "warnings", "-W", "clippy::cognitive_complexity"]
|
|
|
|
[tasks.test]
|
|
command = "cargo"
|
|
args = ["test"]
|
|
|
|
# Named coverage-report, not coverage: cargo-make reserves "coverage" for
|
|
# its own built-in tarpaulin/kcov-routing composite task, which clobbers a
|
|
# same-named custom one.
|
|
#
|
|
# Reports coverage only; not gated on a threshold yet — main.rs is thin
|
|
# argv dispatch exercised by the real end-to-end `cargo run`, not unit
|
|
# tests, so it's excluded here rather than dragging the number down for
|
|
# reasons unrelated to test quality. pipeline.rs is deliberately NOT
|
|
# excluded even though it's mostly network/subprocess/filesystem
|
|
# orchestration too (hence its own low number) — its one pure decision
|
|
# function (decide_tier_action) is unit tested and should stay visible in
|
|
# this report; excluding the whole file would hide that signal along with
|
|
# the untested parts. See docs/ARCHITECTURE.md > "separate pure decision logic
|
|
# from I/O."
|
|
[tasks.coverage-report]
|
|
command = "cargo"
|
|
args = ["llvm-cov", "--ignore-filename-regex", "main\\.rs", "--summary-only"]
|
|
|
|
[tasks.audit]
|
|
command = "cargo"
|
|
args = ["audit"]
|
|
|
|
[tasks.build]
|
|
command = "cargo"
|
|
args = ["build", "--release"]
|
|
|
|
[tasks.install-hooks]
|
|
description = "One-time setup: point git at the tracked hooks in .githooks/"
|
|
command = "git"
|
|
args = ["config", "core.hooksPath", ".githooks"]
|
|
|
|
[tasks.ci]
|
|
dependencies = ["format-check", "lint", "complexity", "test", "coverage-report", "audit"]
|
|
|
|
[tasks.default]
|
|
alias = "ci"
|