You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/clojure-cli/clojure-style.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
Code is easier to read and work with when it is consistent format that follows common rules.
4
4
5
-
[Clojure community style guide](https://github.com/bbatsov/clojure-style-guide) provides a common style for Clojure code. While most style recommendations are widely used, others are more contentious. Ultimately the development team for the project should define a workable set of style rules that makes them productions, ideally using much of those rules from the style guide.
5
+
[:fontawesome-brands-github: Clojure community style guide](https://github.com/bbatsov/clojure-style-guide) provides a common style for Clojure code. While most style recommendations are widely used, others are more contentious. Ultimately the development team for the project should define a workable set of style rules that makes them productions, ideally using much of those rules from the style guide.
6
6
7
7
A consistent format between editors also minimises version control changes not related to code design. The following format tools for clojure can all be configured to be consistent with each other (although zprint defaults will require more customisation):
8
8
@@ -12,9 +12,9 @@ A consistent format between editors also minimises version control changes not r
12
12
13
13
14
14
??? INFO "Tooling that uses the Clojure Style Guide"
15
-
Emacs `clojure-mode` and Clojure LSP (via cljfmt) format code following the most common Clojure style guide rules, although cljfmt rules are quite strick so Practicalli disables many of them.
15
+
Emacs `clojure-mode` and Clojure LSP (via cljfmt) format code following the most common Clojure style guide rules, although cljfmt rules seem restrictive around line spacing so Practicalli disables those rules.
16
16
17
-
cljstyle default configuration follows the majority of styles and has the same defaults as cljfmt. :fontawesome-solid-book-open: Practicalli Clojure CLI Config tweaks a few rules to make code more readable and allow for repl design experiments.
17
+
cljstyle default configuration follows the majority of styles and has the same defaults as cljfmt. [:fontawesome-solid-book-open: Practicalli Clojure CLI Config](practicalli-config.md) tweaks a few rules to make code more readable and allow for repl design experiments.
18
18
19
19
20
20
## cljstyle
@@ -51,7 +51,7 @@ Cljstyle will examine all files in the current directory and any sub-directories
cljstyle can be used as a library without installing the cljstyle binary. [:fontawesome-solid-book-open: Practicalli Clojure CLI Config](/clojure/clojure-cli/practicalli-config/) defines the `:format/cljstyle` alias which should be passed wither the `check` or `format` option
54
+
cljstyle can be used as a library without installing the cljstyle binary. [:fontawesome-solid-book-open: Practicalli Clojure CLI Config](practicalli-config.md) defines the `:format/cljstyle` alias which should be passed wither the `check` or `format` option
55
55
56
56
Check all the Clojure files (.clj .cljc .edn .cljs) in the current project
0 commit comments