Skip to content
Browse files

Merge pull request #2 from amalloy/master

:add-linters option
  • Loading branch information...
2 parents 7832ac8 + 9c29612 commit 4e2024e978fd2c2e7a883b1d409bfb5e23c7d90e @jonase 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
2 project.clj
@@ -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
5 src/eastwood/core.clj
@@ -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)))))))
-
View
2 src/leiningen/eastwood.clj
@@ -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 4e2024e

Please sign in to comment.
Something went wrong with that request. Please try again.