From fb9b2e3b992f845fe03ef0efe71cc292cbc0a1cc Mon Sep 17 00:00:00 2001 From: Jeremy Fleischman Date: Sat, 7 Mar 2026 00:44:51 -0800 Subject: [PATCH] Add a path agnostic requirement to the formatter spec This is an alternative to implementing a stdin specification (https://github.com/numtide/treefmt/pull/586). --- docs/site/reference/formatter-spec.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/site/reference/formatter-spec.md b/docs/site/reference/formatter-spec.md index 30051133..bf8dfb90 100644 --- a/docs/site/reference/formatter-spec.md +++ b/docs/site/reference/formatter-spec.md @@ -68,3 +68,8 @@ outputs. ### 5. Reliable We expect the formatter to be reliable and not break the semantics of the formatted files. + +### 6. Path agnostic + +The formatter **MUST** be path agnostic (formatting **MUST NOT** depend on the +path of the file being formatted).