bbatsov / clojure-style-guide

A community coding style guide for the Clojure programming language
https://guide.clojure.style
4.01k stars 279 forks source link

Establish community convention for "side-effecting"-only requires #175

Open borkdude opened 5 years ago

borkdude commented 5 years ago

Please chime on this discussion:

https://github.com/borkdude/clj-kondo/issues/241

After processing the feedback, we can extract a style guide "rule" from this.

bbatsov commented 3 years ago

Would you be interested in distilling a rule for this now that dust has settled?

borkdude commented 3 years ago

@bbatsov The convention that clj-kondo ended up adopting:

If a namespace has been required without :refer or :alias then it is assumed to be required for side effects and will not be reported as unused.