clj-kondo

https://github.com/clj-kondo/clj-kondo
borkdude 2020-09-02T13:26:54.020100Z

I'd like to get started on this feature soon: https://github.com/borkdude/clj-kondo/issues/872 Ignoring a warning from clj-kondo on one form at a time. If you have any input on this, feel free to join the discussion.

👍 1
2020-09-02T14:31:36.020500Z

some of the code in here: https://github.com/sogaiu/adorn adds inline defs to functions -- along with metadata. it might be relatively easy to adapt / copy-modify the code there to make editor support for adding the "markings" that you decide upon.

borkdude 2020-09-02T14:39:21.020900Z

Right now I'm thinking of: ^:clj-kondo/ignore for ignoring every warning/error in form. And ^{:clj-kondo/ignore [:invalid-arity]} for ignoring specific linter warnings. Possibly support for fine-grained config: ^{:clj-kondo/config {:linters {:unresolved-symbol {:level :warning}}}} on forms, although I think that's a bit of a stretch and too verbose for this purpose.

2020-09-02T15:20:21.021100Z

those seems sensible. curious whether one could use aliased keywords to shorten things somehow. i guess not without making an alias...

borkdude 2020-09-02T15:32:32.021300Z

We could also do ^:ignore but that would maybe conflict with other tools