Fork me on GitHub
#clj-kondo
<
2020-02-23
>
sogaiu04:02:18

i'm using clj-kondo to examine source files fetched from github (seeded from clojars' feed.clj). one thing i noticed is that there are files that have names that end in .clj, and they appear to be template files. they have sequences of characters like {{name}} in them. it appears that clj-kondo can pick (some?) of these out and display a message like: "error: Invalid keyword: .", which is nice, but there is no string displayed for what the invalid keyword might have been. i noticed similar messages for invalid symbols and tokens do display some string. is it practical to report what string might have been considered invalid?

dominicm08:02:12

It might be that it is reading it as : followed by {{...}}

dominicm08:02:23

So the invalid string might be just ""

sogaiu08:02:42

ah, that makes sense -- there was another instance (the squirrel file: https://github.com/technomancy/leiningen/blob/master/test_projects/sample-failing/src/nom/nom/nom.clj) where the sequence was a colon followed by a semi-colon. since the line number is there, i guess i can just read the specific line and print that out. thanks @dominicm!

dominicm08:02:21

Np. I'm glad my years of finding ways to make clojure do weird things is useful :)

😂 1