We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1003c67 commit 7ada90eCopy full SHA for 7ada90e
1 file changed
lein-cljfmt/src/leiningen/cljfmt.clj
@@ -9,8 +9,11 @@
9
(:test-paths project))]
10
(if (empty? paths)
11
(leiningen.core.main/abort "No source or test paths defined in project map")
12
- (->> (map io/file paths)
13
- (filter #(and (.exists %) (.isDirectory %)))))))
+ (->> (conj paths "project.clj")
+ (map io/file)
14
+ (filter #(and (.exists %)
15
+ (or (.isDirectory %)
16
+ (= "project.clj" (.getName %)))))))))
17
18
(defn- execute-command [command options paths]
19
(case command
0 commit comments