Skip to content

Use deps to infer more accurate linting #905

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jun 22, 2025
Merged

Conversation

frenchy64
Copy link
Contributor

@frenchy64 frenchy64 commented Jun 10, 2025

As described in the docs, adding --dependencies will copy more accurate information to the clj-kondo cache.

This found a couple of minor issues like #904, but makes linting much more useful in the future.

You may need to manually clear .clj-kondo/.cache once.

I added an explicit dep on hiccup because we use it. Hiccup and kerodon need clj-kondo configs, which I temporarily added to .clj-kondo/imports. They will be overwritten if we bump these deps and they provide their own configs.

I didn't commit .clj-kondo/imports to keep the PR small, though it is recommended. In practice it won't make a difference, but add !.clj-kondo/imports to .gitignore to commit the imports.

Copy link
Member

@tobias tobias left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for adding this! Looks good generally, but I left a couple of comments to discuss or address.

@@ -22,7 +22,8 @@
(pattern [re] (.pattern re))
(groupnames [_] [])
re/RegexFragment
(static? [_ _] true))
(static? [_ _] true)
(recursimplify [_ _] (throw (ex-info "Not implemented" {}))))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@frenchy64 frenchy64 requested a review from tobias June 18, 2025 04:35
@tobias tobias merged commit 2565412 into clojars:main Jun 22, 2025
@tobias
Copy link
Member

tobias commented Jun 22, 2025

Merged, thanks @frenchy64!

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.

2 participants