This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-12-14
Channels
- # adventofcode (14)
- # announcements (3)
- # babashka (18)
- # beginners (32)
- # calva (1)
- # clj-kondo (65)
- # cljs-dev (5)
- # cljsrn (3)
- # clojure (22)
- # clojure-spec (13)
- # clojure-uk (53)
- # clojured (3)
- # clojuredesign-podcast (50)
- # clojurescript (8)
- # core-async (32)
- # cursive (15)
- # data-science (1)
- # datomic (17)
- # fulcro (48)
- # hyperfiddle (1)
- # off-topic (5)
- # shadow-cljs (2)
- # testing (2)
@qythium You can re-run your PR using the following: Go to https://circleci.com/gh/yuhan0/clj-kondo/27 and press "Rerun workflow" Meanwhile I've added some notes on PRs here: https://github.com/borkdude/clj-kondo/blob/master/doc/dev.md#pr
I think CircleCI gets confused when you force push a commit when another is still running, or something along those lines
Maybe I'm missing something, but I could only get my branch to run on Circleci by editing the yml config file and pushing a temporary commit
the force push was to remove that commit after making the PR, sorry about the trouble it caused
btw, the spec for get is obviously wrong if you look at https://github.com/clojure/clojure/blob/653b8465845a78ef7543e0a250078eea2d56b659/src/jvm/clojure/lang/RT.java#L758 anything may implement the ILookup interface, that's why it's spec'ed as ::any in speculative: https://github.com/borkdude/speculative/blob/master/src/speculative/core.cljc#L202
yeah, it's complicated. the specs in speculative already dealt with a lot of examples from the wild, so its good to look at those first
but we don't have that, it's a pretty weak typesystem that only screams at you if something is clearly wrong
Did you do any changes to .circleci/config.yml? I think that might be the reason why the JVM tests aren't passing
for example, if you look at another PR: https://github.com/borkdude/clj-kondo/pull/651 it just works
maybe you should try to unfollow the project on circleci again, because it seems the project isn't running the PR branch under my name
yeah sorry, it's my first time on circleci and I might have messed things up without knowing how
@U0K592YDP it seems like his PR isn't running on my account somehow: https://circleci.com/gh/borkdude/clj-kondo
@qythium can you delete clj-kondo from your circleci account and then do another commit?
Interesting, but that would make it complicated for contributors to run and test things like the performance
script on their end without opening a PR
Actually my main motivation for looking into clj-kondo's type checker was to have it warn me about using get
on vectors that had accidentally been converted to lazy seqs - I found myself making that error a few times resulting in hard-to-trace bugs because it would propagate nil
s silently
It's good to know that I can choose to override it at a local config level, even if :associative
is technically too narrow
as a last step (and I hope you're not getting annoyed now): it would be good to add a couple of unit tests for the things you changed, so they will lock down the changes you made
Hey, is it possible to add linter configuration to a library? For example I have my main project, and a library, If I add this to my main-app/.clj-kondo/config.edn
it works. But if I add it to my-lib/.clj-kondo/config.edn
, and then add my-lib
to the dependencies of main-app
it doesn’t work.
I couldn’t find it in https://github.com/borkdude/clj-kondo/blob/master/doc/config.md
There is an issue for this: https://github.com/borkdude/clj-kondo/issues/559 Please read it and feel free to share your thoughts there
I now included a Github action that diffs linting changes to a branch and master: https://github.com/borkdude/clj-kondo/commit/54977287ef7897af9260844fde19d211d42fa8e8/checks?check_suite_id=358386407
Clj-kondo v2019.12.14 ✨ Unresolved namespace linter and 13 other enhancements/fixes! This might be the last release for 2019. Thanks you all for the great feedback and contributions. https://github.com/borkdude/clj-kondo/releases/tag/v2019.12.14

Updating on Nix 😃 : https://github.com/NixOS/nixpkgs/pull/75733
Thank you!