clj-kondo

https://github.com/clj-kondo/clj-kondo
yuhan 2021-04-17T10:23:07.271700Z

$ echo 'abc/' | clj-kondo --lint -
<stdin>:1:5: error: Invalid symbol: abc/.
linting took 21ms, errors: 1, warnings: 0
Why does the error get reported at column 5 (after the slash) instead of the start of the symbol? It causes a tiny hard-to-see squiggly line in Emacs, but I'm not sure if that's a frontend issue with flycheck-clj-kondo.

borkdude 2021-04-17T10:24:12.271900Z

Not sure

yuhan 2021-04-17T10:27:31.273600Z

ok, I'll log an issue if this isn't a design decision. Still a big improvement from the time I last updated, where it would report at the start of the file 🙂

borkdude 2021-04-17T10:28:46.273800Z

it's not a conscious decision I think

borkdude 2021-04-17T12:17:38.274Z

@qythium Thanks for the PR :)

borkdude 2021-04-17T12:18:02.274200Z

$ ./clj-kondo --lint - <<< 'foo/'
<stdin>:1:1: error: Invalid symbol: foo/.
:thumbsup:

🎉 1
yuhan 2021-04-17T12:24:52.276500Z

Thanks for all your work on clj-kondo! I still find it amazing how easy it is to go from "huh, why does that squiggly line look weird" to digging out the root cause and fixing it. Yay for open source 🙂

🎉 5