This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
- # announcements (10)
- # babashka (18)
- # beginners (136)
- # calva (9)
- # cider (14)
- # clara (12)
- # clj-kondo (32)
- # cljsrn (3)
- # clojure (133)
- # clojure-europe (21)
- # clojure-nl (4)
- # clojure-uk (15)
- # clojurescript (60)
- # conjure (40)
- # crux (7)
- # cursive (12)
- # datomic (6)
- # emacs (2)
- # fulcro (19)
- # jackdaw (25)
- # jobs-discuss (3)
- # kaocha (3)
- # leiningen (5)
- # off-topic (99)
- # pedestal (1)
- # re-frame (49)
- # reagent (4)
- # ring (5)
- # rum (5)
- # shadow-cljs (53)
- # spacemacs (2)
- # sql (13)
- # timbre (2)
- # tools-deps (23)
- # vim (11)
Hello @borkdude 🙂 I am trying out super-linter with
, 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:
VALIDATE_ALL_CODEBASE: false VALIDATE_CLOJURE: true
File:[project/src/my_ns.clj] - WARN! Failed to get filetype for:[project/src/my_ns.clj]!
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 🙂
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
@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/linter.sh 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 https://go.atomist.com/catalog/skills/atomist/clj-kondo-skill (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
@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 https://github.com/borkdude/clj-kondo/blob/master/doc/ci-integration.md 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: https://github.com/atomist-skills/clj-kondo-skill/blob/master/src/atomist/main.cljs. I actually had not thought about hooks but these things have parameters (https://github.com/atomist-skills/clj-kondo-skill/blob/master/skill.edn#L28) 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.
These are some examples: https://github.com/borkdude/clj-kondo/tree/master/libraries
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 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
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 now has docs for coc.neovim: https://github.com/borkdude/clj-kondo/blob/master/doc/editor-integration.md#cocnvim Thanks https://github.com/sittim