Permalink
Browse files

Version 0.0.3: :add-linters option

  • Loading branch information...
1 parent 7832ac8 commit 9c296122dfead7473b4b52635278eb225a2b6351 @amalloy amalloy committed Apr 19, 2012
Showing with 5 additions and 4 deletions.
  1. +1 −1 project.clj
  2. +3 −2 src/eastwood/core.clj
  3. +1 −1 src/leiningen/eastwood.clj
View
@@ -1,4 +1,4 @@
-(defproject jonase/eastwood "0.0.2"
+(defproject jonase/eastwood "0.0.3"
:description "A Clojure lint tool"
:dependencies [[analyze "0.1.6"]
[org.clojure/tools.namespace "0.1.2"]
View
@@ -55,10 +55,11 @@
linters (set (or (:linters opts)
default-linters))
excluded-linters (set (:exclude-linters opts))
- linters (set/difference linters excluded-linters)]
+ add-linters (set (:add-linters opts))
+ linters (-> (set/difference linters excluded-linters)
+ (set/union add-linters))]
(doseq [namespace namespaces]
(try
(lint-ns namespace linters)
(catch RuntimeException e
(println "Linting failed:" (.getMessage e)))))))
-
@@ -20,7 +20,7 @@
(let [project (update-in project
[:dependencies]
conj
- '[jonase/eastwood "0.0.2"])
+ '[jonase/eastwood "0.0.3"])
project (if (contains? project :source-path)
(assoc project :source-paths [(:source-path project)])

0 comments on commit 9c29612

Please sign in to comment.