Fork me on GitHub

Hello, sorry for being lazy. Short of time! 😄 Is there a comment marker I can put in a file to stop linting of it?


@pez Can you give more context? I think we've been over this before with the Calva REPL window. Is this another use case?

Noah Bogart12:09:15

In javascript, you can write // eslint-disable and linting will stop until you write eslint-enable, so putting that at the top of the file effectively ignores the whole file

Noah Bogart12:09:39

Here’s a good description of what's possible:


We already have this in clj-kondo but only on the level of forms


so I'm asking questions to learn about the context of the problem

Noah Bogart12:09:25

Sure, I don’t mean to demand that kondo has this, just noting what might be the reasonable expectation of functionality

👍 2

So, I am not expecting this functionality. 😀 I have a lot of test files for testing various Calva features. Some of them have a lot of small forms and I create new files quite often. It would just be very convenient if I could add a comment to make the files more readable. It's fine with configuring it in some other file as well. Even if I would find a comment more easy at hand.


@pez yeah, I think you can configure that in .clj-kondo/config.edn right now


you can also put everything in your favorite comment and then add #_:clj-kondo/ignore on that, if that makes sense

❤️ 2
Noah Bogart15:09:53

Or :skip-comments in config, which I like a lot

👍 4