Skip to content

Export clj-kondo hooks for library consumers#35

Merged
humorless merged 2 commits intomainfrom
laurence/include-clj-kondo-hook-in-resource
Mar 9, 2026
Merged

Export clj-kondo hooks for library consumers#35
humorless merged 2 commits intomainfrom
laurence/include-clj-kondo-hook-in-resource

Conversation

@humorless
Copy link
Member

Summary

  • Bundle clj-kondo hooks and config under
    resources/clj-kondo.exports/com.lambdaisland/ornament/ so they are included
    in the JAR
  • Update README with the correct two-step import workflow (--copy-configs --skip-lint then --dependencies --parallel)

Previously, the hooks only served ornament's own development linting and were
invisible to downstream users. With this change, consumers can activate them
by running:

  clj-kondo --lint "$(clojure -Spath)" --copy-configs --skip-lint

No changes to the existing .clj-kondo/ files — those remain in place for
ornament's own dev linting.

Bundle the hooks and config under resources/clj-kondo.exports/ so
downstream users can activate them via:
  clj-kondo --copy-configs --dependencies --lint classpath

Update README and CHANGELOG accordingly.
Use the correct two-step workflow from the clj-kondo docs:
  --copy-configs --skip-lint  (to copy configs)
  --dependencies --parallel   (to warm the cache)

The previous instruction used wrong flags and a literal "classpath"
string instead of the actual classpath expansion.
@humorless humorless merged commit 488ba0b into main Mar 9, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant