Liking cljdoc? Tell your friends :D

clojure-lsp.custom-linters-api

Public API used by custom linters, avoid breaking changes.

Public API used by custom linters, avoid breaking changes.
raw docstring

api-fnsclj

source

db-with-internal-analysisclj

(db-with-internal-analysis db)

Return a db with only internal analysis.

Return a db with only internal analysis.
sourceraw docstring

db-with-uris-analysisclj

(db-with-uris-analysis db uris)

Return a db with only analysis for uris. Good for performance since the db is reduced to see only those uris.

Return a db with only analysis for uris.
Good for performance since the db is reduced to see only those uris.
sourceraw docstring

dir-uris->file-urisclj

(dir-uris->file-uris uris db)

Convert a coll of uris that may represent dirs to its respective file uris if present on db.

Example

(dir-uris->file-uris ["file:///project/src"] db)
=> ["file:///project/src/foo.clj"
    "file:///project/src/bar.clj"]

Convert a coll of uris that may represent dirs to its
 respective file uris if present on db.

**Example**

 ```clojure
 (dir-uris->file-uris ["file:///project/src"] db)
 => ["file:///project/src/foo.clj"
     "file:///project/src/bar.clj"]

 ```
sourceraw docstring

external-analysisclj

(external-analysis db)

Filter only dependencies analysis, that are not related to project code.

Filter only dependencies analysis, that are not related to project code.
sourceraw docstring

fast=clj

(fast= a b)

Fast = comparassion, useful for string, sym and keyword comparassions.

Fast `=` comparassion, useful for string, sym and keyword comparassions.
sourceraw docstring

filename->uriclj

(filename->uri filename db)

Convert a absolute filename path to a uri.

Convert a absolute filename path to a uri.
sourceraw docstring

find-all-var-definitionsclj

(find-all-var-definitions db include-private?)

Find all var-definitions of db.

Find all var-definitions of db.
sourceraw docstring

find-declarationclj

(find-declaration db element)

Find the analysis element declaration.

Find the analysis element declaration.
sourceraw docstring

find-definitionclj

(find-definition db element)

Find the analysis element definition.

Find the analysis element definition.
sourceraw docstring

find-elementclj

(find-element db uri row col)

Find the analysis element in given position.

Find the analysis element in given position.
sourceraw docstring

find-element-from-symclj

(find-element-from-sym db ns-sym name-sym)

Find element from a full qualified namespaced symbol.

Find element from a full qualified namespaced symbol.
sourceraw docstring

find-implementationsclj

(find-implementations db element)

Find the analysis element implementations.

Find the analysis element implementations.
sourceraw docstring

find-nodesclj

(find-nodes db elements filter-fn)

Find all rewrite-clj zipper nodes from elements filtering by filter-fn function.

(find-nodes
  db
  (find-all-var-definitions db true)
  #(.equals 'clojure.core/defn (:defined-by %)))
Find all rewrite-clj zipper nodes from elements filtering by filter-fn function.

```clojure
(find-nodes
  db
  (find-all-var-definitions db true)
  #(.equals 'clojure.core/defn (:defined-by %)))
```
sourceraw docstring

find-nodes-from-defined-bysclj

(find-nodes-from-defined-bys db defined-bys)

Find the rewrite-clj zipper node from all var-definitions defined-by one of defined-bys.

Find the rewrite-clj zipper node from all var-definitions defined-by one of `defined-bys`.
sourceraw docstring

find-nodes-from-symclj

(find-nodes-from-sym db ns-sym name-sym)

Find the rewrite-clj zipper node from a fully qualified symbol.

Find the rewrite-clj zipper node from a fully qualified symbol.
sourceraw docstring

find-referencesclj

(find-references db element include-definition?)

Find the analysis element references.

Find the analysis element references.
sourceraw docstring

find-var-definitionsclj

(find-var-definitions db uri include-private?)

Find all var-definitions of a uri.

Find all var-definitions of a uri.
sourceraw docstring

inside?clj

(inside? a b)

Checks if element a is inside element b scope.

Checks if element `a` is inside element `b` scope.
sourceraw docstring

internal-analysisclj

(internal-analysis db)

Filter only project related analysis, that are not related to dependencies code.

Filter only project related analysis, that are not related to dependencies code.
sourceraw docstring

uri->filenameclj

(uri->filename uri)

Convert a uri to an absolute filename path.

Convert a uri to an absolute filename path.
sourceraw docstring

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

× close