clojure-style-guide icon indicating copy to clipboard operation
clojure-style-guide copied to clipboard

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

Open borkdude opened this issue 6 years ago • 2 comments

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.

borkdude avatar Jun 07 '19 16:06 borkdude

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

bbatsov avatar Dec 04 '20 07:12 bbatsov

@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.

borkdude avatar Dec 04 '20 08:12 borkdude