Expand description
Lightweight harn.toml loader for harn fmt and harn lint.
This module is intentionally separate from crate::package (which owns
the richer [check] + [dependencies] manifest model used by
harn check, harn install, etc.). harn.toml can carry both sets of
keys; this loader focuses on the [fmt] and [lint] sections and walks
up from an input file looking for the nearest manifest.
Recognized keys (snake_case, Cargo-style):
[fmt]
line_width = 100
# By default, section-header separators follow line_width.
# Set separator_width to force a fixed width.
[lint]
disabled = ["unused-import"]
require_file_header = false
complexity_threshold = 25
persona_step_allowlist = ["legacy_helper"]Structs§
- FmtConfig
- Harn
Config - Combined
harn.tomlview used byharn fmtandharn lint. - Lint
Config
Enums§
Functions§
- load_
for_ path - Walks up from
startto find the nearestharn.toml. ReturnsOk(HarnConfig::default())if none is found. ReturnsErron parse failure so callers can surface the problem rather than silently ignore malformed config.