Fork me on GitHub

Hello @borkdude 🙂 I am trying out super-linter with

          VALIDATE_CLOJURE: true
, and, curiously, it seems to pick up and validate e.g. YAML and JSON files are validated. That’s one issue; I thought that, according to the super-linter docs, once you turn on a specific validator, you turn off the rest. It’s not my real issue, though. My real problem is the following:
  - WARN! Failed to get filetype for:[project/src/my_ns.clj]!


Have you seen anything like that before?


I wanted to ask at the #super-linter channel on whatever medium, but there is none linked at the super-linter github repo.


So, sorry to bother you about what I guess is essentially not a problem with clj-kondo 😅 Just thought you might have some input regardless.


super-linter is GitHub’s native tool (the repo is owned by GitHub itself, in case you missed that) so you probably should ask through the repo’s Issues about that one.


Thanks @suomi.esko. I thought it’d be a bit much to ask via something like Issues when I had no clue whether there was an error in the code or an error in my thinking. Maybe this is customary, though? I tend to ask more informally first, like in Slack 🙂


That's fine


Which one? Asking in Issues when I don’t know if the Issue is actually with the code? 🙂


Asking everywhere is fine with me. But super-linter is so new that you probably have the most luck at the repo itself

👍 3

@reefersleep Yes, like @suomi.esko, it's probably best if you post an issue there. Do you know which version you are running? The version with clj-kondo in it might not be published yet, it came after 2.2.0


@borkdude I don’t understand that; the version I tried was 2.2.0, the documentation mentioned Clojure at that point. In any case, I bumped it to 2.2.2, and that didn’t work either. A colleague of mine pointed out the error in the lib/ script, and I opened up a PR which hopefully fixes the problem:


2.2.2 was a typo, I meant 2.2.0, I don't think there is a newer published version yet


@reefersleep speaking of super-linter, the company I'm at is also going to provide similar support for running clj-kondo. If you're interested in trying it, it's available at (also requires that you install a GitHub app). We're focusing on enabling tools to run on events, and then push data back to be evaluated by other functions. Ultimately, we're working towards being able to say things like "IF clj-kondo had no violations, AND the security check passed, AND the unit tests succeeded, THEN ...). IFTTT for delivery so to speak

🤓 6

Looks interesting


@borkdude one of the things I've been excited about is the possibility of potentially sharing configurations across Repos.


Feel free to submit to the docs once you're ready. Maybe is a good place for it


@slimslenderslacks That's cool. Can you also share code files that are necessary for hooks (which is a new feature)?


Will do, thanks! The code that we run is here: I actually had not thought about hooks but these things have parameters ( so probably could look at ways to share hooks too. That's really interesting.


The first thing that interested me was using public urls (e.g gist urls) to share configurations between teams. Among our own clojure repos, that certainly helps us.


And that kind of sharing was easy to add. It seems to me like there could be value in sharing libraries of linter rules anyway. I'll take a look at hooks as well.


Right! So one of the things we've added is the ability to reference a config by url. So, for slingshot, we could pull in for all projects that have slingshot in the CP.


I don't have an instinct for how practical this is.


That could work, but what about the code in the slingshot dir?


I see ... if the config has hooks, you really would have to be able to pull down the hook code too. So if I was a library owner, I could ship a config.edn, AND hook code to users of my library.


clj-kondo doesn't automatically import that (right now) so you have to copy that code yourself to your own .clj-kondo


I'll see if I can get this to work on the serverless runner. So far, it seems like it should be possible to merge several libraries by referencing their github coords.


clj-kondo has a merge-configs API function to merge configs btw

👍 3