Skip to content

Boot Support #197

Open
Open

Description

@DonyorM

What is the status of kibit's support for boot? I haven't seen a plugin that is equivalent to lein-kibit, is one necessary?

I'm creating a luminus template that uses boot, so I haven't used kibit with boot myself, hence the somewhat elementary questions.

Activity

  1. danielcompton commented on Jul 5, 2017

    @danielcompton
    Member

    It’s certainly possible, and I’d be happy to take a patch for it. Boot users can just call kibit with the src and test paths at the CLI with lein, but it would certainly be nicer to have native integration.

  2. seancorfield commented on Jul 27, 2017

    @seancorfield
    Member

    I just added a Kibit task to our Boot file:

    (deftask kibit
      "Kibit checks code for idiomatic usage and makes suggestions."
      []
      (with-pass-thru fs
        (pod/with-eval-in (pod/make-pod (update-in (get-env)
                                                   [:dependencies]
                                                   conj
                                                   '[lein-kibit "0.1.6-beta1"]))
          (require '[kibit.driver :refer [run]]
                   '[clojure.java.io :as io])
          (run (for [folder ["src" "test"]
                     :let [file-path (io/file folder)]
                     :when (.exists file-path)]
                 file-path)
               nil))))
    

    It could be made a lot smarter than that but...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions