Permalink
Browse files

Fixed linter names, see #7

  • Loading branch information...
1 parent 14231f2 commit 148dd4b3f9a9eff2e16af24f458ecd458b2d3691 @jonase committed May 11, 2012
View
@@ -38,16 +38,28 @@ can also lint your projects dependencies:
$ lein eastwood '{:namespaces [clojure.set clojure.java.io] :exclude-linters [:unused-fn-args]}'
== Linting clojure.set ==
- {:linter :misplaced-docstring,
+ {:linter :misplaced-docstrings,
:msg "Possibly misplaced docstring, #'clojure.set/bubble-max-key",
:line 13}
== Linting clojure.java.io ==
- {:linter :deprecated,
+ {:linter :deprecations,
:msg
"Instance method 'public java.net.URL java.io.File.toURL() throws java.net.MalformedURLException' is deprecated.",
:line 50}
+Available linters are:
+
+* `:naked-use`
+* `:misplaced-docstrings`
+* `:def-in-def`
+* `:reflection`
+* `:deprecations`
+* `:unused-fn-args`
+* `:unused-private-vars`
+* `:keyword-typos`
+
+
Available options are:
* `:namespaces` Namespaces to lint
@@ -50,6 +50,6 @@
(defn deprecations [exprs]
(for [expr exprs
dexpr (filter deprecated (expr-seq expr))]
- {:linter :deprecated
+ {:linter :deprecations
:msg (msg dexpr)
:line (-> dexpr :env :line)}))
@@ -34,7 +34,7 @@
(for [expr (mapcat expr-seq exprs)
:when (and (= (:op expr) :def)
(misplaced-docstring? expr))]
- {:linter :misplaced-docstring
+ {:linter :misplaced-docstrings
:msg (format "Possibly misplaced docstring, %s" (:var expr))
:line (-> expr :env :line)}))
@@ -24,6 +24,6 @@
(not= s1 s2)
(< 3 (count s1))
(< (levenshtein s1 s2) 2))]
- {:linter :keyword-typo
+ {:linter :keyword-typos
:msg (format "Possible keyword typo: %s instead of %s?" kw1 kw2)})))
@@ -22,7 +22,7 @@
vfreq (var-freq exprs)]
(for [pvar pdefs
:when (nil? (vfreq pvar))]
- {:linter :unused-private-var
+ {:linter :unused-private-vars
:msg (format "Private var %s is never used" pvar)
:line (-> pvar :env :line)})))

0 comments on commit 148dd4b

Please sign in to comment.