Fork me on GitHub
#clojure
<
2021-01-26
>
Jeongsoo Lee05:01:40

Hello! Glad to join this awesome community!

👋 22
James Carr18:01:03

Is it true there are no static analysis tools for clojure!?

vemv03:01:56

to add one to the already mentioned: Eastwood maybe I'd call it "dynamic analysis" though because it works by evaling your code under tools.analyzer. In exchange one gets great accuracy

didibus06:01:32

Kibit as well

noisesmith18:01:15

that's false (but they can't do a lot of the things static analysis does with languages that enforce static types)

noisesmith18:01:27

there are many tools actually

alexmiller18:01:58

specifically, clj-kondo is now pretty actively used by a lot of people and gives a lot of great feedback

borkdude18:01:39

also clojure-lsp uses clj-kondo analysis and offers additional tools inside your IDE/editor, all based on static analysis

hiredman18:01:13

depending on what you are doing there are also some very useful libraries like tools.namespace, tools.reader, and tools.analyzer.* that you can use to roll your own code processing and examining

borkdude19:01:13

There is also https://github.com/borkdude/grasp which allows you to search code using specs and do your own analysis (uses tools.reader under the hood)