-
Notifications
You must be signed in to change notification settings - Fork 135
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
deps.edn / clj support #221
Comments
FWIW, I got it working from bash with this one-liner: clojure -Sdeps "{:deps {jonase/kibit {:mvn/version \"0.1.6\"}}}" -e "(require '[kibit.driver :as k]) (k/external-run [\"src\"] nil)" I’ve not yet managed to get it to work from within a profile in a |
Aha, I was able to get it to work via this profile in my :kibit
{:extra-deps {jonase/kibit {:mvn/version "0.1.6"}}
:main-opts ["-e"
"(require,'[kibit.driver,:as,k]),(k/external-run,[\"src\"],nil)"]} Granted this is nearly functionally identical to the example linked above; the only functional difference is that it doesn’t require downloading and caching the Still, given that projects using tools.deps can fairly easily use Kibit with this technique without any changes to Kibit itself, it seems like it might be worth adding this to the readme? I’d be happy to contribute such a PR if there’s interest. Thanks to @matthias-margush for pointing out the using-commas-instead-of-spaces trick to work around shell escaping issues in the CLI tools scripts. |
Ah, another downside of the lein-kibit-free example above: it won’t pick up on command-line args like |
I created https://gitlab.com/tvaughan/kibit-runner as a short-term solution to this problem. (I think it would be better to incorporate this into kibit itself.) From its README: Add:
to Run:
This will run kibit over the current To specify one or more different directories, run:
To pass options to kibit, add
Or:
@aviflax Please note the ability to pass options to kibit ˆˆˆ. Also, Hi! 👋 |
With the recent release of v0.1.10 which includes #252, kibit-runner is now obsolete and has been archived. No more updates will be made to it. Please note, kibit itself has now been placed in maintenance mode. |
Thank you for your work writing and supporting kibit-runner! |
c.f. #197; as a proof-of-concept, I was able to adapt Sean Corfield's snippet for
boot
todeps.edn
fairly easily, but it probably merits a mod to the Kibit documentation as well.A working example, with relevant parts:
https://github.com/eigenhombre/trav/blob/master/deps.edn#L7
https://github.com/eigenhombre/trav/blob/master/lint/kibit.clj#L5
The text was updated successfully, but these errors were encountered: