Public API used by custom linters, avoid breaking changes.
Public API used by custom linters, avoid breaking changes.
(db-with-internal-analysis db)Return a db with only internal analysis.
Return a db with only internal analysis.
(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.
(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"]
```(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.
(fast= a b)Fast = comparassion, useful for string, sym and keyword comparassions.
Fast `=` comparassion, useful for string, sym and keyword comparassions.
(filename->uri filename db)Convert a absolute filename path to a uri.
Convert a absolute filename path to a uri.
(find-all-var-definitions db include-private?)Find all var-definitions of db.
Find all var-definitions of db.
(find-declaration db element)Find the analysis element declaration.
Find the analysis element declaration.
(find-definition db element)Find the analysis element definition.
Find the analysis element definition.
(find-element db uri row col)Find the analysis element in given position.
Find the analysis element in given position.
(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.
(find-implementations db element)Find the analysis element implementations.
Find the analysis element implementations.
(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 %))) ```
(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`.
(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.
(find-references db element include-definition?)Find the analysis element references.
Find the analysis element references.
(find-var-definitions db uri include-private?)Find all var-definitions of a uri.
Find all var-definitions of a uri.
(inside? a b)Checks if element a is inside element b scope.
Checks if element `a` is inside element `b` scope.
(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.
(uri->filename uri)Convert a uri to an absolute filename path.
Convert a uri to an absolute filename path.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |