kibit
clj-kondo
kibit | clj-kondo | |
---|---|---|
3 | 19 | |
1,753 | 1,662 | |
0.2% | 0.4% | |
5.6 | 9.1 | |
8 months ago | 9 days ago | |
Clojure | Clojure | |
- | Eclipse Public License 1.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
kibit
-
Introducing Splint: a fast Kibit-style idiom and code-shape linter
I've recently been working on a code-shape linter for Clojure and decided it's good enough to show off publicly. It occupies the same space as Kibit but is designed to be significantly faster by using macros to compile somewhat efficient predicate functions for the offending patterns instead of relying on the powerful but extremely slow core.logic library:
-
How to learn Clojure idioms?
https://github.com/jonase/kibit analyses your code and suggests changes for it to be more idiomatic.
-
Wrote one of my first clojure programs (tic-tac-toe). Any constructive criticism would be greatly appreciated.
Please configure and use tools like clj-kondo and kibit. Kibit will report areas where you could write idiomatic clojure instead. Eg, it should catch all those (if (condition) true false) and ask you to replace it with (condition). Or if you really need a boolean value, use boolean to coerce it.
clj-kondo
-
Advent of Code Day 4
My best suggestion here would be clj-kondo with flycheck-clj-kondo in Emacs. I really can't recommend it enough and would have killed to have it when I was learning Clojure. Not only will it underline all of those references to (now) undefined vars, but it can tell you about numerous little mistakes like mixing up arguments orders in (say) sequence functions, misplaced docstrings that get discarded, style conventions, etc. It's staggering how good it is even for a language as dynamic as Clojure.
- Strong typing, a hill I'm willing to die on
- Clj-kondo: a static analyzer and linter for Clojure
-
What does bad code in Clojure look like?
The clj-kondo linters are worth reading.
-
The YAML Document from Hell
Sure!
Spec: https://github.com/edn-format/edn
Example (linter config): https://github.com/clj-kondo/clj-kondo/blob/634294183a0aa2ca...
-
The Joy of Static Analysis: automated Clojure code refactoring
Clj-kondo doesn't produce an AST but you could easily combine the analysis output with the AST produced by rewrite-clj by matching on location.
-
Can you use Clojure for mobile, backend, frontend, scripts, desktop, and embedded development?
But if you want full support, you can implement a hook: https://github.com/clj-kondo/clj-kondo/blob/master/doc/hooks.md
-
Wrote one of my first clojure programs (tic-tac-toe). Any constructive criticism would be greatly appreciated.
Please configure and use tools like clj-kondo and kibit. Kibit will report areas where you could write idiomatic clojure instead. Eg, it should catch all those (if (condition) true false) and ask you to replace it with (condition). Or if you really need a boolean value, use boolean to coerce it.
- Want to get into closure, but struck at practice
-
Are these problems something that Just Make Sense once I learn more, or what?
Try clj-kondo, a Clojure linter which will tell you about arity errors and more, before you even evaluate your code.
What are some alternatives?
clojure-style-guide - A community coding style guide for the Clojure programming language
schema - Clojure(Script) library for declarative data description and validation
splint - A Clojure linter focused on style and code shape.
immer - Postmodern immutable and persistent data structures for C++ — value semantics at scale
truffleruby - A high performance implementation of the Ruby programming language, built on GraalVM.
core.typed - An optional type system for Clojure
web-development-with-clojure - Repository for the examples from the book Web Development with Clojure, 2nd edition
fastapi - FastAPI framework, high performance, easy to learn, fast to code, ready for production
Quarkus - Quarkus: Supersonic Subatomic Java.
janet - A dynamic language and bytecode vm
deprecated-coalton-prototype - Coalton is (supposed to be) a dialect of ML embedded in Common Lisp.