Fork me on GitHub
#clj-kondo
<
2020-04-19
>
hindol.adhya15:04:33

Hi, clj-kondo does not complain on namespace qualified keywords even when the namespace is not required. Is this intended?

borkdude15:04:39

Do you mean like:

$ clj-kondo --lint - <<< '::f/foo'
linting took 9ms, errors: 0, warnings: 0

borkdude15:04:10

Yeah, I think it should warn about that. Please make an issue

martinklepsch16:04:33

(let [y (str "y")]
  (string/replace "abc" #"[a]" y))
This produces the following error on y for me:
Regex match arg requires string or function replacement arg.

borkdude16:04:05

@martinklepsch Could this be an older version of clj-kondo? I remember fixing something like this

borkdude16:04:23

plz upgrade

martinklepsch16:04:01

I’ll give that a try and report back

martinklepsch16:04:12

:+1: works as expected