lsp

:clojure-lsp: Clojure implementation of the Language Server Protocol: https://clojure-lsp.io/
borkdude 2021-03-29T15:44:55.141500Z

@ericdallo idea: clj-kondo has a :consistent-alias linter, but you have to configure the aliases yourself in how you want to link full namespace names to aliases. since clojure-lsp scans your entire project, it could figure out what aliases are already used the most for which namespace and then populate this map inside .clj-kondo/config.edn once.

ericdallo 2021-03-29T15:51:14.142200Z

looks a good idea!

ericdallo 2021-03-29T15:52:11.143300Z

If i have a namespace on this linter for example, str for clojure.string and I write a string/join and require it, it will complain about it, is that right?

borkdude 2021-03-29T15:52:26.143600Z

correct

ericdallo 2021-03-29T15:52:53.144200Z

nice, we probably would do that every first time we scan the project?

ericdallo 2021-03-29T15:53:20.144900Z

I mean, when we do a classpath scan, (new deps or deps changed)

borkdude 2021-03-29T15:53:21.145Z

yeah and only if the alias isn't already in there

👍 1
borkdude 2021-03-29T15:53:29.145300Z

and probably also only when you enable it

ericdallo 2021-03-29T15:53:42.145600Z

yes, it'd need to be in a disabled feature flag for now

ericdallo 2021-03-29T15:54:49.145900Z

Created this: https://github.com/clojure-lsp/clojure-lsp/issues/388