36 lines
487 B
Clojure
36 lines
487 B
Clojure
|
|
(ns bond.target-data
|
||
|
|
"Reference def targets for bond to test against."
|
||
|
|
{:clj-kondo/config {:linters {:unused-binding {:level :off}
|
||
|
|
:unused-private-var {:level :off}}}})
|
||
|
|
|
||
|
|
(defn foo
|
||
|
|
[x]
|
||
|
|
(* 2 x))
|
||
|
|
|
||
|
|
(defn- private-foo
|
||
|
|
[x]
|
||
|
|
(* 2 x))
|
||
|
|
|
||
|
|
(defn foo-caller [x]
|
||
|
|
(foo x))
|
||
|
|
|
||
|
|
(defn bar
|
||
|
|
[x]
|
||
|
|
(println "bar!") (* 2 x))
|
||
|
|
|
||
|
|
(defn quux
|
||
|
|
[a b & c]
|
||
|
|
c)
|
||
|
|
|
||
|
|
(defn quuk
|
||
|
|
[a b & c]
|
||
|
|
c)
|
||
|
|
|
||
|
|
(defmacro baz
|
||
|
|
[x]
|
||
|
|
`(* ~x 2))
|
||
|
|
|
||
|
|
(def without-arglists
|
||
|
|
(fn [x]
|
||
|
|
(* 2 x)))
|