clojure-emacs / squiggly-clojure

Flycheck checker for Clojure, using eastwood and core.typed.
GNU General Public License v3.0
204 stars 25 forks source link

some way to specify eastwood config #33

Closed expez closed 8 years ago

expez commented 8 years ago

Hi

Eastwood has support for a configuration file, to set up exceptions etc. It would would be awesome if we had some way to configure squiggly clojure to use that file.

pnf commented 8 years ago

I think the most general thing to do would be to add :eastwood-options to the other squiggly configuration options, so you can override anything you want, e.g.

  :profiles {:dev {:env {:squiggly {:checkers [:eastwood :typed]
                                    :eastwood-exclude-linters [:unlimited-use]
                                    :eastwood-options { :builtin-config-files ["myconfigfile.clj"]
                                                                     :debug (:time :progress)
                                                                   })}}}

So you can specify a :builtin-config-files vector within that. (Far be it from me to come up with a better name.) I'll leave :eastwood-exclude-linters alone, though it's now redundant.

pnf commented 8 years ago

I've pushed 0.1.5.

expez commented 8 years ago

Perfect! :+1: