Skip to content

Commit 0ba0c6e

Browse files
committed
Include :clj-kondo-settings to dump data.
1 parent 9c06f06 commit 0ba0c6e

File tree

5 files changed

+5
-0
lines changed

5 files changed

+5
-0
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
- API/CLI
1313
- Replace `tools.cli` with `babashka.cli`. #2036
14+
- Include `:clj-kondo-settings` to dump data.
1415

1516
## 2025.04.23-18.16.46
1617

cli/integration-test/integration/api/dump_test.clj

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
:dep-graph
1919
:findings
2020
:settings
21+
:clj-kondo-settings
2122
:project-root
2223
:source-paths
2324
:diagnostics]

lib/src/clojure_lsp/api.clj

+1
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,7 @@
321321
`:dep-graph` Dependency graph of namespaces relationship derived from clj-kondo analysis.
322322
`:findings` clj-kondo findings used for diagnostics.
323323
`:settings` a map with all settings considered by clojure-lsp.
324+
`:clj-kondo-settings` a map with all clj-kondo config used by clojure-lsp.
324325
325326
**Example**
326327

lib/src/clojure_lsp/internal_api.clj

+1
Original file line numberDiff line numberDiff line change
@@ -459,6 +459,7 @@
459459
(assoc $
460460
:project-root (shared/uri->filename (:project-root-uri db))
461461
:source-paths (-> db :settings :source-paths)
462+
:clj-kondo-settings (:kondo-config db)
462463
:diagnostics (diagnostics-by-uri db options))
463464
(select-keys $
464465
(if (not (coll? filter-keys))

lib/test/clojure_lsp/api_test.clj

+1
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,7 @@
338338
:dep-graph
339339
:findings
340340
:settings
341+
:clj-kondo-settings
341342
:project-root
342343
:source-paths
343344
:diagnostics]

0 commit comments

Comments
 (0)