Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

:add-linters option #2

Merged
merged 1 commit into from
Apr 19, 2012
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion project.clj
Original file line number Diff line number Diff line change
@@ -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"]
Expand Down
5 changes: 3 additions & 2 deletions src/eastwood/core.clj
Original file line number Diff line number Diff line change
Expand Up @@ -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)))))))

2 changes: 1 addition & 1 deletion src/leiningen/eastwood.clj
Original file line number Diff line number Diff line change
Expand Up @@ -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)])
Expand Down