Fork me on GitHub
#clj-kondo
<
2021-12-28
>
fabrao00:12:36

hello all, Why is this happening?

(ns some-ns
    (:require [com.wsscode.pathom3.plugin :as p.plugin]
              [com.wsscode.pathom3.connect.indexes :as pci]))

(let [one-registers spec-plugin (p.plugin/register (plugins/spec-check-attributes spec-plugin-react-fn))
        institutions-resolvers (pci/register [resolvers ...])])
p.plugin/register -> Unresolved var
pci/register -> Unresolved var

seancorfield01:12:46

@fabrao You seem to have five items in that let binding -- it should be an even number.

fabrao02:12:24

@seancorfield it´s warning clj-kondo information, maybe it´s configuring :lint-as {com.fulcrologic.guardrails.core/>def    clojure.spec.alpha/def} as I see in pathom config.edn .clj-kondo

fabrao02:12:52

the warning gone

seancorfield02:12:48

Regardless, the code you posted is invalid syntax -- a copy'n'paste error @fabrao?

fabrao02:12:52

well, it´s not complete code, I was wonder only for warning message explain, so I looked at source of pathom to discover what kind of pci/register is to handle it in clj-kondo