Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
borkdude committed Jul 2, 2020
1 parent ce4234b commit 79f6814
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/clj_kondo/main_test.clj
Expand Up @@ -2270,6 +2270,9 @@ foo/foo ;; this does use the private var
:level :warning,
:message "Unused private var foo/f"})
(lint! "(ns foo) (defn- f [])"))
(assert-submaps
'({:file "<stdin>", :row 1, :col 103, :level :warning, :message "Unused private var foo/g"})
(lint! "(ns foo {:clj-kondo/config '{:linters {:unused-private-var {:exclude [foo/f]}}}}) (defn- f []) (defn- g [])"))
(is (empty? (lint! "(ns foo) (defn- f []) (f)")))
(is (empty? (lint! "(ns foo) (defn- f [])"
'{:linters {:unused-private-var {:exclude [foo/f]}}}))))
Expand Down

0 comments on commit 79f6814

Please sign in to comment.