Skip to content

Commit

Permalink
eastwood: replace project detection of clojure and leiningen
Browse files Browse the repository at this point in the history
  • Loading branch information
totakke committed Feb 23, 2025
1 parent a518aab commit b56de96
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/bosslint/linter/eastwood.clj
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,12 @@
(let [top-dir (git/top-dir)]
(binding [process/*working-directory* top-dir]
(if-let [f (cond
(and (process/command-exists? "clojure")
(linter/clojure-project?))
#(eastwood-clojure %1 %2 top-dir)

(and (process/command-exists? "lein")
(linter/leiningen-project?))
eastwood-lein)]
eastwood-lein

(and (process/command-exists? "clojure")
(linter/clojure-project?))
#(eastwood-clojure %1 %2 top-dir))]
(f files conf)
(println (ansi/yellow "Command not found: clojure or lein")))))))

0 comments on commit b56de96

Please sign in to comment.