clj-kondo invocations as values. Pure.
Constructing the argument vector is where a lint task silently stops failing, so it is stated here and asserted rather than inlined at the process call.
clj-kondo invocations as values. Pure. Constructing the argument vector is where a lint task silently stops failing, so it is stated here and asserted rather than inlined at the process call.
(classpath parts)parts joined for clj-kondo's --lint, dropping the absent ones.
`parts` joined for clj-kondo's --lint, dropping the absent ones.
(lint-candidates src-dirs)(lint-candidates src-dirs dir-names)Default lint targets for src-dirs: the source roots minus resources, plus
test/. The caller drops the ones that do not exist on disk.
The two-argument form takes the repo's top-level dir-names and lints
every test root among them (see test-roots) instead of test/ alone.
Default lint targets for `src-dirs`: the source roots minus resources, plus test/. The caller drops the ones that do not exist on disk. The two-argument form takes the repo's top-level `dir-names` and lints every test root among them (see `test-roots`) instead of test/ alone.
(lint-command paths fail-level)Argument vector that lints paths. A nil fail-level reports without
failing the build.
Argument vector that lints `paths`. A nil `fail-level` reports without failing the build.
(sync-command cp)Argument vector that copies dependency-exported configs into ./.clj-kondo/imports/, where clj-kondo loads them automatically.
Argument vector that copies dependency-exported configs into ./.clj-kondo/imports/, where clj-kondo loads them automatically.
(test-roots dir-names)The test roots among dir-names, the repo's top-level directory names:
every name starting with "test" (test, test-swarm, test-integration ...),
sorted, without duplicates. A name ending in -resources (test-resources)
holds fixtures, not source, and is left out as resources/ is. The universe
comes from the tree, never from a literal, so a repo that grows a second
test root is not silently half-linted.
The test roots among `dir-names`, the repo's top-level directory names: every name starting with "test" (test, test-swarm, test-integration ...), sorted, without duplicates. A name ending in -resources (test-resources) holds fixtures, not source, and is left out as resources/ is. The universe comes from the tree, never from a literal, so a repo that grows a second test root is not silently half-linted.
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 |