From 5c713ca89099a76e4afedb8fb74d280eaeb0a689 Mon Sep 17 00:00:00 2001 From: Greg Rynkowski <5878299+rynkowsg@users.noreply.github.com> Date: Tue, 9 Jan 2024 15:22:09 -0300 Subject: [PATCH] Add note about :file-pattern in edn config --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 00031eb..ac8889e 100644 --- a/README.md +++ b/README.md @@ -270,7 +270,9 @@ In order to load the standard configuration file from Leiningen, add the * `:file-pattern` - a regular expression to decide which files to scan. Defaults to - `#”\.clj[csx]?$”`. + `#"\.clj[csx]?$"`. + - When config is defined in edn file, you need to use `#re` tag and string + convertable to regex pattern, e.g. `:file-pattern #re "\\.clj[csx]?$"`. * `:parallel?` - true if cljfmt should process files in parallel. Defaults to false.