[MXNET-617] - Improve Clojure styles with cljfmt tools revise #11537
[MXNET-617] - Improve Clojure styles with cljfmt tools revise #11537
Conversation
- Add lein-cljfmt-check to each project - Add lein-cljfmt-fix to each project
- Run $MXROOT/contrib/clojure-package/lein-cljfmt-fix
- Run $MXNET_ROOT/contrib/clojure-package/examples/lein-cljfmt-fix
@@ -0,0 +1,22 @@ | |||
#!/usr/bin/env sh |
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.
What do you think about moving this script to a bit more top-level directory and then applying it recursively?
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.
@marcoabreu
I did not think of this, but yes this is a great idea indeed.
- Thanks to @marcoabreu for the suggestion/review
@gigasquid |
Thanks @agilecreativity for putting this together. I'll take a look later tonight. |
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.
Looks great! I really like the move to just the single top level script. It simplifies things :)
I ran an integration test locally and also tested out the formatting scripts. Everything looks fine.
Thanks again for the contribution 💯
…#11537) * Remove 'vi ci-test.sh' file * Add the scripts to reformat the style with cljfmt - Add lein-cljfmt-check to each project - Add lein-cljfmt-fix to each project * Add lein-cljfmt to the plugins vector * Add steps to keep style consistent to README.md * Run lein-cljfmt-fix on the main src/test codes - Run $MXROOT/contrib/clojure-package/lein-cljfmt-fix * Run lein cljfmt fix on the example projects - Run $MXNET_ROOT/contrib/clojure-package/examples/lein-cljfmt-fix * Use only one script in the base directory. - Thanks to @marcoabreu for the suggestion/review * Minor update to kick off the new build
Description
Use cljfmt to keep styles of the project consistent.
This include the updated version that have a cleaner commit history and rebase on the latest changes from @gigasquid.
Please help review.
Thanks
Checklist
Essentials
Please feel free to remove inapplicable items for your PR.
Changes
vi ci-test.sh
from the projectlein-cljfmt-check
to each project and the base directory to be run in batchlein-cljfmt-fix
to fix the style of the project excluding some files when necessaryComments
lein-cljfmt-check
is intentionally omit the-e
to allow the script to continue