:style/indent
inference.
`:style/indent` inference.
:style/indent
rules based on clojure-mode, for names that are short
and might be a syllable/word within a larger, unrelated word/phrase.
e.g. are
can be part of compare
, so are
should only be looked for exact matches,
not for fuzzy matches.
`:style/indent` rules based on clojure-mode, for names that are short and might be a syllable/word within a larger, unrelated word/phrase. e.g. `are` can be part of `compare`, so `are` should only be looked for exact matches, not for fuzzy matches.
:style/indent
rules based on clojure-mode, for names that are deemed long/unique enough.
`:style/indent` rules based on clojure-mode, for names that are deemed long/unique enough.
(infer-style-indent {:keys [arglists] macro-name :name :as metadata})
Given a metadata
map obtained from a Clojure var object,
associates a :style/indent
value based on inference (rule of thumb) rules:
&
is observed.The exact inference logic is an implementation detail.
:style/indent
will be not associated if no rule matched.
Given a `metadata` map obtained from a Clojure var object, associates a `:style/indent` value based on inference (rule of thumb) rules: * The macro name is inspected in conjunction with the arglist, in search for an acceptably analog match with a clojure.core counterpart. * If that fails, the position of `&` is observed. * Otherwise, the argument names are observed. The exact inference logic is an implementation detail. `:style/indent` will be not associated if no rule matched.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close