john-slop/examples/config/config.toml

37 lines
1.0 KiB
TOML

# User-wide base layer. `schema_version` is optional in overlays, but spelling
# it out makes compatibility expectations explicit.
schema_version = 1
[diagnostics.categories]
# Category gates can silence a complete diagnostic family. All four categories
# (`typography`, `style`, `prompt-leakage`, and `source-code`) default to true.
style = true
prompt-leakage = true
[input]
# Bound each decoded document to 4 MiB for this installation.
max_document_bytes = 4194304
[thresholds]
# Evidence bands affect labels and `--fail-level`; they are not probabilities.
low = 20
medium = 50
high = 75
# Arrays merge by stable ID. A known ID needs only the fields being changed.
[[replacements]]
id = "em-dash"
# Keep typographic em dashes instead of offering an ASCII replacement.
enabled = false
[[rules]]
id = "templated-conclusion"
# Disable one rule even while its `style` category remains enabled.
enabled = false
[[rules]]
id = "source-placeholder-todo"
# Severity changes presentation; weight changes evidence-score contribution.
severity = "error"
weight = 15.0