-
Notifications
You must be signed in to change notification settings - Fork 1
Use hopefully soon-to-be-official cljfmt lib entrypoint #57
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
Use hopefully soon-to-be-official cljfmt lib entrypoint #57
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. Join @cap10morgan and the rest of your teammates on |
bb/lib/cljfmt.clj
Outdated
@@ -11,8 +11,9 @@ | |||
"Runs cljfmt check on all files (recursively) in dir. Returns a collection of | |||
any files that failed the check." | |||
[dir] | |||
(let [cljfmt-opts {:paths [dir], :diff? false} | |||
{:keys [counts incorrect error] :as _result} (fmt/check cljfmt-opts)] | |||
(let [cljfmt-opts {:diff? false} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this isn't involved in this pr, but is this option to display a diff in the output? if that's the case, that seems helpful.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is, but I think in practice it's much more noise than signal. It still outputs messages saying where the problem is and a description of the specific problem, and that's always been more than sufficient for me to know what I need to do to fix it.
Here's an example:
clj-kondo lint:
src/fluree/server/consensus.clj:12:19-25::warning - unused binding thingy
1a1ef5e
to
a0732c2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎄
Merge activity
|
No description provided.