Skip to content

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

Conversation

cap10morgan
Copy link
Contributor

No description provided.

@cap10morgan cap10morgan requested a review from a team April 25, 2024 16:32
Copy link
Contributor Author

cap10morgan commented Apr 25, 2024

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @cap10morgan and the rest of your teammates on Graphite Graphite

@@ -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}
Copy link
Contributor

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.

Copy link
Contributor Author

@cap10morgan cap10morgan Jun 19, 2024

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

@cap10morgan cap10morgan force-pushed the 04-25-use_hopefully_soon-to-be-official_cljfmt_lib_entrypoint branch from 1a1ef5e to a0732c2 Compare June 19, 2024 16:41
@cap10morgan
Copy link
Contributor Author

@zonotope OK this is now using the upstream merged code. Hopefully it stays stable for a while, but who knows. Look OK?

Copy link
Contributor

@zonotope zonotope left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎄

Copy link
Contributor Author

cap10morgan commented Jun 21, 2024

Merge activity

@cap10morgan cap10morgan merged commit 6299f8b into main Jun 21, 2024
3 of 7 checks passed
@cap10morgan cap10morgan deleted the 04-25-use_hopefully_soon-to-be-official_cljfmt_lib_entrypoint branch June 21, 2024 18:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants