Permalink
Browse files

Macro usage can't be detected

  • Loading branch information...
1 parent ef807a7 commit 540fa665e0063b0d27889305853b9787eeae8a70 @jonase committed Jan 7, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/eastwood/linters/core.clj
View
3 src/eastwood/linters/core.clj
@@ -41,7 +41,8 @@
(defn- check-usage-of-private-vars [exprs]
(let [v-count (apply merge-with + (map var-count exprs))]
(doseq [pvar (mapcat private-defs exprs)]
- (when-not (get v-count pvar)
+ (when-not (or (get v-count pvar)
+ (-> pvar meta :macro))
(println "Private variable" pvar "is defined but never used")))))
(defn unused-private-vars [exprs]

0 comments on commit 540fa66

Please sign in to comment.