Small Clojure interpreter, linter and formatter.
EPL-1.0 License
Bot releases are visible (Hide)
joker.core/doto
macroboolean?
, any?
, int?
, pos-int?
, neg-int?
, nat-int?
, double?
, simple-ident?
, qualified-ident?
, simple-symbol?
, qualified-symbol?
, simple-keyword?
, qualified-keyword?
, seqable?
, indexed?
, bounded-count
,if
without else
branch. See https://github.com/candid82/joker/issues/9. The warning is off by default. To enable it, add :if-without-else
rule in .joker
file:{:known-macros [...]
:rules {:if-without-else true}}
:ignored-unused-namespaces
option in .joker
file to hide a warning on an unused namespace (thanks @joelash for this contribution). If you want Joker to ignore some unused namespaces (i.e. if they are required for their side effects), you can list them in :ignored-unused-namespaces
vector. For example:{:known-macros [...]
:rules {...}
:ignored-unused-namespaces [foo.bar]}
("oops")
will now result in a warning)recur
in try
, catch
and finally
joker.os/exit
functionclojure.string
require
.joker
file in the directory of the file it's linting, as well as all parent directories up to the root. Falls back to ~/.joker
. See https://github.com/candid82/joker/issues/7.require
of standard namespacespr-err
, prn-err
, print-err
, println-err
trim-space
let
with empty bindings vectordefn
, fn
, for
, ns
etc)cond
*clojure-version*
)this-as
)re-find
now returns nil
if there is no match~/.joker
file. Please see Reducing false positives for more details.--lint
option now automatically detects Clojure dialect by file extension.joker.
prefix in their names: joker.core
, joker.string
etc instead of core
, string
. This is a BREAKING CHANGE.Published by candid82 almost 8 years ago