Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions lein-cljfmt/src/leiningen/cljfmt.clj
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,11 @@
(:test-paths project))]
(if (empty? paths)
(leiningen.core.main/abort "No source or test paths defined in project map")
(->> (map io/file paths)
(filter #(and (.exists %) (.isDirectory %)))))))
(->> (conj paths "project.clj")
(map io/file)
(filter #(and (.exists %)
(or (.isDirectory %)
(= "project.clj" (.getName %)))))))))

(defn- execute-command [command options paths]
(case command
Expand Down