Liking cljdoc? Tell your friends :D

clojure-lsp.api

Entrypoint for main clojure-lsp features

Entrypoint for main clojure-lsp features
raw docstring

clean-ns!clj

(clean-ns! {:keys [project-root settings namespace ns-exclude-regex]
            :as options})

Organize ns form, removing unused requires/refers/imports and sorting alphabetically. Options:

:project-root a java.io.File representing the project root.

:namespace a coll of symbols representing the namespaces which should be cleaned, if empty all project namespaces will be considered.

:ns-exclude-regex a string regex representing the namespaces that should be excluded during this call.

dry? a boolean, when enabled make no changes to files, only report.

settings map of settings following https://clojure-lsp.io/settings/

Organize ns form, removing unused requires/refers/imports and sorting
alphabetically.
Options:

`:project-root` a java.io.File representing the project root.

`:namespace` a coll of symbols representing the namespaces which should be cleaned,
if empty all project namespaces will be considered.

`:ns-exclude-regex` a string regex representing the namespaces that should be excluded during this call.

`dry?` a boolean, when enabled make no changes to files, only report.

`settings` map of settings following https://clojure-lsp.io/settings/
raw docstring

diagnosticsclj

(diagnostics {:keys [project-root settings] :as options})

Analyze the project and find all diagnostics (warnings, errors). Options:

:project-root a java.io.File representing the project root.

:namespace a coll of symbols representing the namespaces which should be cleaned, if empty all project namespaces will be considered.

:ns-exclude-regex a string regex representing the namespaces that should be excluded during this call.

:output a map with options on how the result should be printed, available values are: :canonical-paths a boolean if the path should be absolute or not, defaults to false.

settings map of settings following https://clojure-lsp.github.io/clojure-lsp/settings/

Analyze the project and find all diagnostics (warnings, errors).
Options:

`:project-root` a java.io.File representing the project root.

`:namespace` a coll of symbols representing the namespaces which should be cleaned,
if empty all project namespaces will be considered.

`:ns-exclude-regex` a string regex representing the namespaces that should be excluded during this call.

`:output` a map with options on how the result should be printed, available values are:
  `:canonical-paths` a boolean if the path should be absolute or not, defaults to false.

`settings` map of settings following https://clojure-lsp.github.io/clojure-lsp/settings/
raw docstring

format!clj

(format! {:keys [project-root settings namespace ns-exclude-regex] :as options})

Format one or more namespaces using cljfmt. Options:

:project-root a java.io.File representing the project root.

:namespace a coll of symbols representing the namespaces which should be cleaned, if empty all project namespaces will be considered.

dry? a boolean, when enabled make no changes to files, only report.

:ns-exclude-regex a string regex representing the namespaces that should be excluded during this call.

settings map of settings following https://clojure-lsp.io/settings/

Format one or more namespaces using cljfmt.
Options:

`:project-root` a java.io.File representing the project root.

`:namespace` a coll of symbols representing the namespaces which should be cleaned,
if empty all project namespaces will be considered.

`dry?` a boolean, when enabled make no changes to files, only report.

`:ns-exclude-regex` a string regex representing the namespaces that should be excluded during this call.

`settings` map of settings following https://clojure-lsp.io/settings/
raw docstring

rename!clj

(rename! {:keys [project-root settings from to] :as options})

Rename a symbol and its definitions across the project. Options:

:project-root a java.io.File representing the project root.

:from the full qualified symbol origin name that should be renamed. e.g. my-project/my-var

:to the full qualified symbol that will replace the original symbol. e.g. my-project/my-var-2

dry? a boolean, when enabled make no changes to files, only report.

settings map of settings following https://clojure-lsp.io/settings/

Rename a symbol and its definitions across the project.
Options:

`:project-root` a java.io.File representing the project root.

`:from` the full qualified symbol origin name that should be renamed. e.g. my-project/my-var

`:to` the full qualified symbol that will replace the original symbol. e.g. my-project/my-var-2

`dry?` a boolean, when enabled make no changes to files, only report.

`settings` map of settings following https://clojure-lsp.io/settings/
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close