Questions tagged [clj-kondo]

5 questions
12
votes
1 answer

How to avoid unresolved symbol with clj-kond when using hugSQL def-db-fns macro?

I write Clojure using the VS Code Calva extension, which uses clj-kondo to perform static analysis of my code. I'm using HugSQL to create Clojure functions from SQL queries and statements. I'm aware that I could handle the database connection and…
jackdbd
  • 4,583
  • 3
  • 26
  • 36
1
vote
1 answer

How to point calva/clj-kondo to find the config file in a subrepo, not at root? F ex: /frontend/.clj-kondo/.config

I'm using a monorepo structure so I don't want it in root, like the documentation wants. So how can I tell calva / clj-kondo where to find this config file? https://github.com/borkdude/clj-kondo/blob/master/doc/editor-integration.md
Sindre
  • 57
  • 1
  • 9
0
votes
2 answers

Can I execute a clj-kondo hook before any macro expansions occur?

I've got a clj-kondo hook which tells me when I'm threading a value through only one form: ;; .clj-kondo/config.edn { ... :hooks {:analyze-call {clojure.core/-> peter.analyzers/superfluous-arrow clojure.core/->>…
Peter
  • 3,619
  • 3
  • 31
  • 37
0
votes
1 answer

Is there an overlap between cljfmt and clojure-kondo?

I have been using Clojure, ClojureScript, lein, shadow-cljs, re-frame, reagent, Emacs, and CIDER to work on a Clojure/ClojureScript dynamic web app project. For the last several weeks, I have been focusing on a Continuous Integration effort. After…
Pedro Delfino
  • 2,421
  • 1
  • 15
  • 30
0
votes
1 answer

clj-condo redefined-var warning for redefined factory function of record

I am using a defrecord form to define a type in Clojure: (defrecord HideTableColumnMarker [columns-resize] ControlMarker) But I am not happy with the default factory function function from the defrecord form, so I overwrite it with my own…
erdos
  • 3,135
  • 2
  • 16
  • 27