Skip to content

Commit

Permalink
Include project.clj by default for lein plugin
Browse files Browse the repository at this point in the history
Since the file project.clj is specific to Leiningen projects it seem
like a good default.

Resolves: #279
  • Loading branch information
jacobemcken committed Dec 10, 2022
1 parent 1003c67 commit 59ddbdd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lein-cljfmt/src/leiningen/cljfmt.clj
Original file line number Diff line number Diff line change
Expand Up @@ -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 %)))
(concat '("project.clj"))))))

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

0 comments on commit 59ddbdd

Please sign in to comment.