Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lint for go-loop macro #145

Open
rafonsecad opened this issue Nov 18, 2023 · 0 comments
Open

lint for go-loop macro #145

rafonsecad opened this issue Nov 18, 2023 · 0 comments

Comments

@rafonsecad
Copy link

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}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant