From 5801e3b382ed4626fc14871e6b54d14fb9d06443 Mon Sep 17 00:00:00 2001 From: Jacob Emcken Date: Sat, 10 Dec 2022 20:28:25 +0100 Subject: [PATCH] Include project.clj by default for lein plugin Since the file project.clj is specific to Leiningen projects it seem like a good default. Fixes: #279 --- lein-cljfmt/src/leiningen/cljfmt.clj | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lein-cljfmt/src/leiningen/cljfmt.clj b/lein-cljfmt/src/leiningen/cljfmt.clj index 9df9edcf..8682e5eb 100644 --- a/lein-cljfmt/src/leiningen/cljfmt.clj +++ b/lein-cljfmt/src/leiningen/cljfmt.clj @@ -10,7 +10,8 @@ (if (empty? paths) (leiningen.core.main/abort "No source or test paths defined in project map") (->> (map io/file paths) - (filter #(and (.exists %) (.isDirectory %))))))) + (filter #(and (.exists %) (.isDirectory %))) + (cons "project.clj"))))) (defn- execute-command [command options paths] (case command