Liking cljdoc? Tell your friends :D

clojure-lsp.kondo


canonicalize-java-analysisclj

(canonicalize-java-analysis analysis)

Canonicalizes java definition elements of a normalized analysis, sharing equal values in a single instance to reduce memory usage. Useful after reading analysis from the transit cache, which creates new instances even for equal values.

Canonicalizes java definition elements of a normalized analysis, sharing
equal values in a single instance to reduce memory usage. Useful after
reading analysis from the transit cache, which creates new instances even
for equal values.
sourceraw docstring

clj-kondo-analysis-batch-sizeclj

source

clj-kondo-versionclj

(clj-kondo-version)
source

config-hashclj

(config-hash project-root)
source

db-with-analysisclj

(db-with-analysis db results)

Update db with normalized kondo analysis, replacing any existing analysis for the same uris.

Update `db` with normalized kondo analysis, replacing any existing analysis
for the same uris.
sourceraw docstring

db-with-merged-analysisclj

(db-with-merged-analysis db results)

Like db-with-analysis but merges new buckets into the existing per-uri analysis instead of replacing it, so an additive pass (e.g. the lazy java-member-definitions analysis) keeps buckets already present at a uri such as java-class-definitions.

Like `db-with-analysis` but merges new buckets into the existing per-uri
analysis instead of replacing it, so an additive pass (e.g. the lazy
java-member-definitions analysis) keeps buckets already present at a uri such
as java-class-definitions.
sourceraw docstring

db-with-resultsclj

(db-with-results db {:keys [findings config] :as results})

Update db with normalized kondo result.

Update `db` with normalized kondo result.
sourceraw docstring

db-without-urisclj

(db-without-uris db uris)

Remove the given uris from the analysis, dep-graph, documents and kondo diagnostics, keeping the dep-graph in sync.

Remove the given `uris` from the analysis, dep-graph, documents and kondo
diagnostics, keeping the dep-graph in sync.
sourceraw docstring

home-config-pathclj

(home-config-path)
source

lazy-java-member-definitions?clj

(lazy-java-member-definitions? db)

Whether external java member definitions are analyzed lazily (on demand) instead of up front during the classpath scan.

Whether external java member definitions are analyzed lazily (on demand)
instead of up front during the classpath scan.
sourceraw docstring

logger-tagclj

source

project-config-pathclj

(project-config-path project-root-uri)
source

run-kondo-copy-configs!clj

(run-kondo-copy-configs! paths db)
source

run-kondo-on-jar-members!clj

(run-kondo-on-jar-members! jar-path db)

Analyze a single dependency jar-path for its java member definitions, used by the lazy/on-demand java analysis. Returns a normalized result keeping only the :java-member-definitions bucket (class definitions are already analyzed up front).

Analyze a single dependency `jar-path` for its java member definitions,
used by the lazy/on-demand java analysis. Returns a normalized result keeping
only the `:java-member-definitions` bucket (class definitions are already
analyzed up front).
sourceraw docstring

run-kondo-on-jdk-source!clj

(run-kondo-on-jdk-source! paths db)
source

run-kondo-on-paths!clj

(run-kondo-on-paths! paths
                     db*
                     {:keys [external?] :as normalization-config}
                     file-analyzed-fn)
source

run-kondo-on-paths-batch!clj

(run-kondo-on-paths-batch! paths normalization-config file-analyzed-fn db*)

Run kondo on paths by partitioning the paths, with this we should call kondo more times but with fewer paths to analyze, improving memory.

Run kondo on paths by partitioning the paths, with this we should call
kondo more times but with fewer paths to analyze, improving memory.
sourceraw docstring

run-kondo-on-reference-uris!clj

(run-kondo-on-reference-uris! uris db*)
source

run-kondo-on-text!clj

(run-kondo-on-text! text uri db*)
source

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close