Skip to content

Commit 7ada90e

Browse files
committed
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
1 parent 1003c67 commit 7ada90e

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

lein-cljfmt/src/leiningen/cljfmt.clj

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,11 @@
99
(:test-paths project))]
1010
(if (empty? paths)
1111
(leiningen.core.main/abort "No source or test paths defined in project map")
12-
(->> (map io/file paths)
13-
(filter #(and (.exists %) (.isDirectory %)))))))
12+
(->> (conj paths "project.clj")
13+
(map io/file)
14+
(filter #(and (.exists %)
15+
(or (.isDirectory %)
16+
(= "project.clj" (.getName %)))))))))
1417

1518
(defn- execute-command [command options paths]
1619
(case command

0 commit comments

Comments
 (0)