promesa icon indicating copy to clipboard operation
promesa copied to clipboard

lint for go-loop macro

Open rafonsecad opened this issue 2 years ago • 0 comments

Currently when using go-loop, kondo will throw an error similar to the image below because it is not treated as the loop macro.

imagen

As far as I know the fix is to add a go-loop entry to the lint-as map

;; file: resources/clj-kondo.exports/funcool/promesa/config.edn
{:lint-as {promesa.core/->          clojure.core/->
           promesa.core/->>         clojure.core/->>
           promesa.core/as->        clojure.core/as->
           promesa.core/let         clojure.core/let
           promesa.core/plet        clojure.core/let
           promesa.core/loop        clojure.core/loop
           promesa.exec.csp/go-loop clojure.core/loop ;; this is the new addition
           promesa.core/recur       clojure.core/recur
           promesa.core/with-redefs clojure.core/with-redefs
           promesa.core/doseq       clojure.core/doseq}}

rafonsecad avatar Nov 18 '23 03:11 rafonsecad