From 556981ce9427f7123a42919d42c17c5dca82970d Mon Sep 17 00:00:00 2001 From: Daniel Compton Date: Mon, 24 Nov 2014 14:57:10 +1300 Subject: [PATCH] Handle directories passed on command line --- src/kibit/driver.clj | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/kibit/driver.clj b/src/kibit/driver.clj index b98386f..6f1042a 100644 --- a/src/kibit/driver.clj +++ b/src/kibit/driver.clj @@ -32,10 +32,8 @@ (defn run [source-paths & args] (let [[options file-args usage-text] (apply (partial cli args) cli-specs) - source-files (if (empty? file-args) - (mapcat #(-> % io/file find-clojure-sources-in-dir) - source-paths) - file-args)] + source-files (mapcat #(-> % io/file find-clojure-sources-in-dir) + (if (empty? file-args) source-paths file-args))] (mapcat (fn [file] (try (check-file file :reporter (name-to-reporter (:reporter options) cli-reporter)) (catch Exception e