repositories / smith

smith

There are many coding harnesses - but this one is fast

owned by bugabinga

clean config files

ab00d077c96adccaf8469035fe67e5221d5f86c4

Oliver Jan Krylow <oliver@bugabinga.net> ·

unsigned

Browse filesCompare with HEAD

Changed files (6)

+53 / −42 text lines

Diff layout

.clippy.toml

Deleted
deleted file mode 100644

+0 / −16 text lines

1# smith Clippy Configuration
2# See .system/RULES.md and .system/research/SMH-RESEARCH-RSCH0003-clippy-best-practices/index.md
3# for lint rationale and escape hatch policy.
4#
5# NOTE: clippy.toml only supports configuration VALUES (thresholds, MSRV).
6# Lint enablement/disablement belongs in .cargo/config.toml rustflags.
7# See .cargo/config.toml for the full rustflags list.
8
9# -----------------------------------------------------------------------------
10# Cognitive Complexity Threshold
11# -----------------------------------------------------------------------------
12# TUI event routing naturally hits this. Review functions >20 during review.
13cognitive-complexity-threshold = 25
15# No MSRV pin: project tracks latest stable Rust.
16# Without msrv, clippy suggests idioms up to the current toolchain — desired.

.config/clippy.toml

Added
new file mode 100644

+16 / −0 text lines

1# smith Clippy Configuration
2# See .system/RULES.md and .system/research/SMH-RESEARCH-RSCH0003-clippy-best-practices/index.md
3# for lint rationale and escape hatch policy.
4#
5# NOTE: clippy.toml only supports configuration VALUES (thresholds, MSRV).
6# Lint enablement/disablement belongs in .cargo/config.toml rustflags.
7# See .cargo/config.toml for the full rustflags list.
8
9# -----------------------------------------------------------------------------
10# Cognitive Complexity Threshold
11# -----------------------------------------------------------------------------
12# TUI event routing naturally hits this. Review functions >20 during review.
13cognitive-complexity-threshold = 25
15# No MSRV pin: project tracks latest stable Rust.
16# Without msrv, clippy suggests idioms up to the current toolchain — desired.

.config/deny.toml

Added
new file mode 100644

+26 / −0 text lines

1[licenses]
2allow = [
3 "Apache-2.0",
4 "MIT",
5 "Unicode-3.0",
6 "Unicode-DFS-2016",
7 "ISC",
8 "BSD-3-Clause",
9 "MPL-2.0",
10 "CDLA-Permissive-2.0",
11 "Apache-2.0 WITH LLVM-exception",
12 "Zlib",
13]
14confidence-threshold = 0.8
16[bans]
17multiple-versions = "warn"
18wildcards = "deny"
20[advisories]
21yanked = "deny"
22ignore = []
24[sources]
25unknown-registry = "deny"
26unknown-git = "deny"

.system/RULES.md

Modified

+1 / −0 text lines

1010- No production `.rs` without matching spec coverage.
1111- Cargo is the only build system.
1212- No make, just, root scripts, package scripts, or non-cargo task runners.
13- No configuration files in the repository root: tool configuration lives under `.config/`, inside `Cargo.toml`, or `.cargo/` where a tool hardcodes that path; `rust-toolchain.toml` and lockfiles excepted as toolchain-mandated.
1314- Latest stable Rust, edition 2024.
1415- No numeric MSRV unless release policy creates one.
1516- wasmtime plus WIT components for plugins.

deny.toml

Deleted
deleted file mode 100644

+0 / −24 text lines

1[licenses]
2allow = [
3 "Apache-2.0",
4 "MIT",
5 "Unicode-3.0",
6 "Unicode-DFS-2016",
7 "ISC",
8 "BSD-3-Clause",
9 "MPL-2.0",
10 "CDLA-Permissive-2.0",
11]
12confidence-threshold = 0.8
14[bans]
15multiple-versions = "warn"
16wildcards = "deny"
18[advisories]
19yanked = "deny"
20ignore = []
22[sources]
23unknown-registry = "deny"
24unknown-git = "deny"

xtask/src/main.rs

Modified

+10 / −2 text lines

152152fn cargo_clippy() -> ExitCode {
153 cargo(&["clippy", "--workspace", "--all-targets", "--all-features"])
153 match Command::new("cargo")
154 .env("CLIPPY_CONF_DIR", ".config")
155 .args(["clippy", "--workspace", "--all-targets", "--all-features"])
156 .status()
157 {
158 Ok(status) if status.success() => ExitCode::SUCCESS,
159 Ok(status) => fail(&format!("cargo clippy exited with {status}\n")),
160 Err(error) => fail(&format!("failed to run cargo clippy: {error}\n")),
161 }
156164fn cargo_nextest() -> ExitCode {
340348fn cargo_deny() -> ExitCode {
341 cargo(&["deny", "check"])
349 cargo(&["deny", "--config", ".config/deny.toml", "check"])
344352fn cargo_audit() -> ExitCode {